WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: bupaje on September 21, 2008, 08:18:10 AM

Title: show_menu2 > different start url?
Post by: bupaje on September 21, 2008, 08:18:10 AM
Just a wild question ... I found and am testing the Aggregator plugin https://forum.WebsiteBaker.org/index.php/topic,6232.msg39091.html#msg39091 It seems very cool but it does not show the child pages more than 1 level deep- and is no longer supported. Sinvce I don't know php I decided to try to paste show_menu2 call into the aggregator module view.php. It shows the first child and siblings relative to the current page for all of them but, of course, all of the instances of the show_menu2 call show the same menu when they loop for each description.

I was wondering if there was a way to have show_menu2 be relative to the url of the current item being retrieved by the aggregator module?

To clarify ...
(http://www.stormvisions.com/junk/showmenu9.jpg)

The "Using the Displace filter" should have no children

and the

"More Tutorials" should have the children of "More Tutorials" but not the siblings.

As I said, wild thought but I was wondering if a simple hack might solve the need. If not I'll just use both like I am trying here http://stormvisions.com/pages/library/photoshop.php but figured I'd ask.



Title: Re: show_menu2 > different start url?
Post by: brofield on October 16, 2008, 04:48:14 AM
Supply the id of the appropriate item as the root of the menu to showmenu2.
Title: Re: show_menu2 > different start url?
Post by: bupaje on October 16, 2008, 05:53:41 PM
Thanks. I'll take a crack at it.