November Happy Hour will be moved to Thursday December 5th.

LanguageManager

Vote:
 
Hej Jag har en fundering som jag undrar ifall det finns någon lösning på. Via Epi's LanguageManager kan man ju som bekant hämta ut text strängar via en XPath liknande syntax, tex LanguageManager.Instance.Translate("/templates/generaltexts/MySpecificTextElementName") Jag hade viljat hämta en listning med flera sådana här, tex använda ett XPath uttryck i stil med: "/templates/generaltexts/item[@flagged='1']" Om ni känner till något fiffigt sätt för att göra detta skulle jag vara väldigt tacksam. Tacksam för svar
#15892
Nov 26, 2007 13:05
Vote:
 
Not possible to run XPath queries through the LanguageManager. EPiServer loads all xml documents into a dictionary and also monitors the folder for changes to trigger reload. The only way I can see that you can get XPath to work is to work with the xml-file in the lang folders by opening them directly. Regards, Fredrik Haglund INEXOR AB href="http://blog.fredrikhaglund.se">http://blog.fredrikhaglund.se
#16584
Nov 28, 2007 11:16
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.