Page 1 of 1

menu issues...

Posted: Thu 22. Dec 2005, 18:17
by odeniyi
Hi,I want to use pure css dynamic menus. I tried playing around with {NAV_LIST_CURRENT} and ahve the following questions:-

1. I can change {NAV_LIST_CURRENT} by editing frontend.css, however what if I want different styles for different templates?

2. On the home page the menu is set up ok. if I click a menu item i see the new page with the selected item only - where are teh other menu items?

3. {NAV_LIST_TOP:IndexName:ClassName} - what is the syntax for calling another class (in ext css?)

am getting there...i think :)

Posted: Fri 23. Dec 2005, 10:06
by odeniyi
are the questions clear? :)

Posted: Sat 24. Dec 2005, 12:39
by odeniyi
After a little experimentation I think {NAV_LIST_CURRENT} was probably designed to be used with {BREADCRUMBS}. That's why it doesn't show main level menu but only contextual menu.

I'll next experiment with the additional replacement tags

- NAV_LIST_SETLEVEL
- {NAV_TAB_LEVELS}
- {BREADCRUMB_LEVELS}

I can relay findings here with some comprehensive updates so other newbies can benefit assuming I can get them to work as required.

Posted: Sat 24. Dec 2005, 14:45
by odeniyi
Having a good chat with myself here :)

I got NAV_LIST to work (didn't know it existed until reading comments about NAV_TABLE_SETLEVEL as it isn't on the docu site).

However, still can't get the additional RTs like NAV_TABLE_SETLEVEL nor NAV_TAB_LEVELS to work.

Boy is this painful..... :?

Posted: Sat 24. Dec 2005, 14:55
by cyrano
to make it a bit more dialogue :-):

have you set this?

- for use of this you must set in ../config/phpwcms/conf.inc.php:
$phpwcms["allow_ext_init"] = 1;
$phpwcms["allow_ext_render"] = 1;

Posted: Sat 24. Dec 2005, 18:18
by odeniyi
thanks cyrano :D

I had seen those settings. They are set to "1" by default in 1.2.6.

All I've done is copy the php_ files to frontend_render and set to 644.

Does seem a bit too simple....but can't see to do anything else....????

Posted: Sat 24. Dec 2005, 21:15
by odeniyi
OK I got NAV_TABLE_SETLEVEL and NAV_LIST_SETLEVEL to work. If syntax is wrong you don't get any result. Experiment or die :)

Still can't get NAV_TAB_LEVELS to work but that's OK as I want pure css, not DHTML/javascript.

I still can't configure the menus using css as the RTs don't seem to take any notice of :"css className".

I'm assuming this self defined class should be in frontend.css?

Any help appreciated.....:)

Posted: Sun 25. Dec 2005, 00:43
by flip-flop
Hi odeniyi,

Take al look: http://www.phpwcms.de/forum/viewtopic.p ... ght=#52477

Merry Christmas and a Happy new Year.

Knut :D

Posted: Sun 25. Dec 2005, 01:56
by odeniyi
Thanks fli-flop - I had seen that but don't know where to place the css. I've tried in frontend.css and header template - any ideas?

I trid a simple class with :-

tstcss {

list-style-type: none;

}

Merry Christmas and a happy new year to you too and thanks for your help.

Posted: Sun 25. Dec 2005, 05:11
by odeniyi
Got it!!!

You have to specify . className ul & li etc......

OK know this is sad on the big day but I've just put the bird in the oven..... :D

enjoy your celebrations & god bless you!