On Wed, 2010-09-08 at 12:40 +0200, Thorsten Scherler wrote: > Hi all, > > I am looking for a url which I can attack to get the available language > for a certain document. > > I am using lenya as cms but the presentation layer is based on the > Apache Forrest Dispatcher which is working outside of the lenya > context. > > I saw > http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/languageselector/ > but the problem with the match is that is uses the page-envelope module and > I am not sure how to use this from outside Lenya <map:parameter > name="document-languages-csv" value="{page-envelope:document-languages-csv}"/> > > Is there something already developed?
I could not found anything so I just wrote a small usecase. If somebody is interested I can commit it to the contributions. It works like http://localhost:8888/defaultfiredocs/live/casosexito.html?lenya.usecase=languages.available which will return an xhtml doc with the following html inside. <ul id="languages"> <li class="language-exists-false">de<span class="current-false"></span></li> <li class="language-exists-false">en<span class="current-false"></span></li> <li class="language-exists-true">es<span class="current-true"></span></li> </ul> I actually transform this for my personal usecase a bit different because I need pure xml but I reckon that is quite specific. Like said if somebody likes to use the module I can put it in svn. salu2 -- Thorsten Scherler <thorsten.at.apache.org> codeBusters S.L. - web based systems <consulting, training and solutions> http://www.codebusters.es/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org For additional commands, e-mail: user-h...@lenya.apache.org