Форумы / Cotonti / Support / Intelligent menu

tensh
#1 23.02.2011 17:10
One thing I miss in Cotonti is menu that shows you where you are with different item css style. e.g. when you are in "Home", it highlights the "home" link.
I think I can use for this "location" and "sublocation" variables? Will I have access for these variables in header already? (so that I can make the plugin hooking to header)

And why the pages don't have sublocation?
aiwass
#2 23.02.2011 18:08
You can use {PAGE_CATPATH} and {LIST_CATPATH} and then add a div class to it to achieve that effect of highlighting where the user is located. I use them on my site, but not with any effects or alike.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
Kort
#3 23.02.2011 19:06
Не doesn't mean highlighting breadcrumbs with a color. What he needs is a capability to highlight a nav item depending on the location. Using xTemplate you can highlight home item, forums and plugins (PHP.z, PHP.e etc). The Highlight plugin lets you highlight navigation parent category items when you view the lists or pages inside these:
http://www.cotonti.com/downloads/plugins/general/highlight-plugin
SED.by - создание сайтов, разработка плагинов и тем для Котонти
Отредактировано: Kort (24.02.2011 00:11, 13 лет назад)
tensh
#4 23.02.2011 19:29
Yes, this is what I was looking for :)

(BTW, it doesn't work for forums in your sandbox site?)
Kort
#5 23.02.2011 19:33
That is a matter of the way you set it up. Sandbox is for demo purposes only, so one category is enough. As regards forums, highlighting them is easy with xTemplate. You've got enough variables to play with: z, m, s. Highlight Plugin was made for lists and pages that are much harder to highlight in a simple manner :)
SED.by - создание сайтов, разработка плагинов и тем для Котонти
tensh
#6 23.02.2011 19:49
How would you recommend highlighting a specific plugin in the navigation menu?
Kort
#7 23.02.2011 19:55
z == plug, e == contact
And then you might use a, m or whatever is there
SED.by - создание сайтов, разработка плагинов и тем для Котонти
Отредактировано: Kort (23.02.2011 20:24, 13 лет назад)
tensh
#8 23.02.2011 21:49
Thank you very much :)
Kort
#9 23.02.2011 22:25
Oh, you're most welcome.
SED.by - создание сайтов, разработка плагинов и тем для Котонти