Hi everyone,
We are trying to do something, we may have a solution but I would like to know if you know a better one.
We have a website (aseba.wikidot.com), we are going to modify it a lot during the next weeks to structure it better. Here is a hint of what it will (probably) look like:
The top bar contains links towards pages ordered by "sections" lik "Thymio" (it's the name of the small robot) "Programming", "Community", "Help"….
What we would like to do is to display the side bar ("Presentation", "News"…. or "Software download", "VPL"…) regarding in which section you are. I mean to display the links towards the pages concerning the section you are in.
Example:
You click on the top bar on "Programming" => You arrive on the "Software download" page and have the corresponding list of links on the left (as on the second image).
Then, you click on the top bar on "Thymio" => You arrive on the "Presentation" page and the side bar changes to display the links of the first image.
Is this clear?
Our idea was to create parent blank pages with the name of the sections on the top bar and use them as parents for the pages of the different sections. ("Presentation" would be the child of "Thymio" as would be "News" or "Examples" and "Software download" would be the child of "Programming").
Then, by looking in the breadcrumbs part of the code, we would test every page to look for its parent. Then if the parent is "Thymio", we display the side bar corresponding and hide the links that doesn't correspond to this section.
Is it a good idea? Is there a better way? Easier?
Thanks in advance!
++