Hello, i want to enhance the menu of my wiki. It just should be a php generatet text, but i have no idea, which file i have to edit. When i put some <? php echo "test"; ?> in the xhtml_slim.pt, the text will shown in the html sourcecode without parsing. What can i do?
Thanks, Campino
Hello,
I used the xhtml_slim, to add my menu http://www.fxparlant.net
And I also used a browser language detection to find which text file to display (if you change your browser prefered language to french, you should have the french menu, same thing for german... for all other language, it's english)
Note that the menu file IS NOT a wiki text, it's simple html. You can also document yourself on the phptal "include" function, (I used the src-include because it's simple html)
<div class="portlet" id="p-menu"> <h5 >Menu</h5> <div class="pBody"> <ul id="t-menu" tal:src-include="string:menu.txt"> </ul> </div> </div>
Here is the code after the browser detection (I simply add a variable${menulang} to add the fr or de or en to the filename)
<div class="portlet" id="p-menu"> <h5 >Menu</h5> <div class="pBody"> <ul id="t-menu" tal:src-include="string:menu${menulang}.txt"> </ul> </div> </div>
Sorry for my messy explanations, I'm in a rush, if you are interested, just add your questions, I'll look at it this evening
François
Campino wrote:
Hello, i want to enhance the menu of my wiki. It just should be a php generatet text, but i have no idea, which file i have to edit. When i put some <? php echo "test"; ?> in the xhtml_slim.pt, the text will shown in the html sourcecode without parsing. What can i do?
Thanks, Campino
mediawiki-l@lists.wikimedia.org