{NAV_MENUBAR} Dropdown menubar
Hi
check in your conf.inc.php that frontend Rendering is ON
check in your conf.inc.php that frontend Rendering is ON
Code: Select all
$phpwcms["allow_ext_init"] = 1; //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"] = 1; //allow including of custom external scripts at frontend rendering
-
- Posts: 5
- Joined: Tue 22. Feb 2005, 11:07
see at my page. any solution to that problem?pico wrote:but the link to a Top-Level only works when there is no Sub-Level, if there is are one ore more Sub-Levels I still can't get the Top-Level
what i would like to have is a automatlically (mouseover) opening clickable 1st level. What an where should i change to achieve this?
I've never tried it, but I think all you need to do is to replace the line
with
in phpwcms_template/inc_script/frontend_render/menubar.php.
Cheers,
Jens
Code: Select all
$html .= "<a class=\"menuButton\" $title href=\"\" tabIndex=\"$tabindex\" onclick=\"return F(event, 'menu_$id');\" onfocus=\"G(event, 'menu_$id');\" onmouseover=\"G(event, 'menu_$id');\">$name</a>\n";
Code: Select all
$html .= "<a class=\"menuButton\" $title $target href=\"$href\" tabIndex=\"$tabindex\" onfocus=\"F(event, 'menu_$id');\" onmouseover=\"F(event, 'menu_$id');\">$name</a>\n";
Cheers,
Jens
Thank you very much Jens. It worked. Just need to replace G events with F events for the automatic opening of menus.JensZ wrote:I've never tried it, but I think all you need to do is to replace the line
the other part of my question was how to make top level clickable (link) if the menu has subitems.
One thing more thou, not really needed for my project but might get handy some day and it will sum up this thread nicely . How to tell the menu to close on mouseout.
I don't know exactly. I guess something would need to trigger an F event, like a time delay or something. For now, keep the onclick="return F(...);" so you can close it with a mouseclick. Check http://www.brainjar.com to see if can find your solution. Let me know if you find a solution. Maybe I'll incorporate it in another release to make the menubar more flexible.
Jens
Jens
Thanks for taking the time to answer. The mosueout closing is not really a big problem for me. The main thing is top level clickability. the brainjar also has non-clickabe links in the top level if it has sub levels. If it helps the code shange should make the top level similar to lower level items like Sub2 in the example below:
- Top
- Sub1
- SubsubA
SubsubB
Sub3 - SubsubA
- Sub1
great stuff JensZ
On another topic I see you have posted the
article templates in page templates section hack
on your site... WOW
sorry if I missed this topic/post elsewhere on forums
but I gave you a 'plug' at bottom of this thread:
http://www.phpwcms.de/forum/viewtopic.php?p=54510
great work.
On another topic I see you have posted the
article templates in page templates section hack
on your site... WOW
sorry if I missed this topic/post elsewhere on forums
but I gave you a 'plug' at bottom of this thread:
http://www.phpwcms.de/forum/viewtopic.php?p=54510
great work.
Originally mentioned herejsw_nz wrote:great stuff JensZ
On another topic I see you have posted the
article templates in page templates section hack
on your site... WOW
sorry if I missed this topic/post elsewhere on forums
but I gave you a 'plug' at bottom of this thread:
http://www.phpwcms.de/forum/viewtopic.php?p=54510
great work.
http://www.phpwcms.de/forum/viewtopic.php?p=53282#53282
Thanks Dexxus,
JensZ has been pretty busy, it seems, and yes I did read that thread. Was referring however to a 'quiet' release/hack of JensZ regarding placing article list and summary templates inside page templates section of backend. Have yet to test it, but certainly looks cool.
http://www.ikfrej.se/index.php?downloads
all best
JensZ has been pretty busy, it seems, and yes I did read that thread. Was referring however to a 'quiet' release/hack of JensZ regarding placing article list and summary templates inside page templates section of backend. Have yet to test it, but certainly looks cool.
http://www.ikfrej.se/index.php?downloads
all best
Ofcource its looks great and we all very thankful that’s why I want it to.
How ever what i cant figure out is why no one take a just a little time of his and use his knowledge to help another, isn’t it the basic principle for Oliver to share his CMS with us at the first place!!!
Or could it be that my question just look very stupid to you’re intellect mind?
How ever what i cant figure out is why no one take a just a little time of his and use his knowledge to help another, isn’t it the basic principle for Oliver to share his CMS with us at the first place!!!
Or could it be that my question just look very stupid to you’re intellect mind?