Tags >> php coding
Nov 12
2009

Finding the top menu

Posted by Bill Tomczak in templates , php coding , joomla 1.5

I was recently asked if there was a way to get the topmost menu item in which a page sits. Let's say you have a menu like this:

Item 1
--Item 1.1
--Item 1.2
----Item 1.2.1
Item 2
--Item 2.1
--Item 2.2

Let's say you wanted to do something special with all the menus in the 'Item 1' tree and something slightly different for all the items in the 'Item 2'  tree. You'd want to know which tree you were on. Here is a bit of simple php code you can use the get the top most menu item no matter where in the navigation you are (see php 4 version further down):





Powered by Azrul's MyBlog for Joomla!

Porno, En harika pornolar,sikis izle, porno izle, seks videolari, porno seyret,Turkce Pornolar, Yesilcam Pornolari, genc kiz Pornosu izle, Bedava sikis izle,pornolar, liseli sikis, sikis, porno,adult video,adult sikis, Yesilcam Porno, Xhamster, Redtube Youporn,En Guzel Gizli cekim Turk pornosu, Xhamster, Redtube Youporn,liseli etek alti

porno

r57.txt, r57shell, r57 shell, r57, c99.txt, c99shell, c99 shell, c99.txt

1813 koxp,koxp indir,koxp indır 1813,online hile koxp 1813,probot 1813,probot 1813 koxp indir,1813,probot,forumdunya.info