eZ Community » Forums » General » Dynamic Links?????

Dynamic Links?????

Dynamic Links?????

Friday 11 July 2003 10:18:44 pm - 3 replies

How can I create dynamic links based on the users previous link selections? Example: I have a template with 3 navigation areas. A top horizontal nav bar, a left nav bar and a right nav bar. The user selects "link 1" on the top nav bar, this changes the left nav bar links. I realize this can be done by linking each nav bar link to a separate template but I don't want to create dozens of templates. How can I "capture" the users node selection and based on that, link to the appropriate child? Thanks in advance.

Friday 11 July 2003 10:47:29 pm


you can do that by using a site hierarchy where each main node under the root folder has a set of sub nodes and where the main nodes are displayed in the top nav and the sub nodes of each main node is displayed in the left nav. Seems to me that this is kind of what you want, right?

Anyway, with this hierarchy it is easy to just use one template. In the top nav you use a fetch with parent node of the root folder + section loop over the result. In the left nav you do a fetch of all nodes where the parent node is the currently selected node + a section loop over the results.

If you have no clue what I am talking about happy.gif Emoticon, take a look here:
and here:


Friday 11 July 2003 11:18:45 pm

Ok, I think I understand.....but how do I get the ID of the currently selected node? Please bare with mehappy.gif Emoticon I'm new to all of this. Thanks.

Friday 11 July 2003 11:40:22 pm

You can get the current node_id with

Some more info here:


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from