xml based navigation structure within CI |
[eluser]xwero[/eluser]
You can use the css technique where the body tag id/class is related to the navigation example. Of course this will produce a long list if you have many pages but you can build a css just for this when you create the cache file. The problem is how to add the right id/class to the body tag. you can hardcode the class/id in the method but then is xml as navigation configuration disregarded. Storing an array with url and class/id in a file to get the right one seems redundant but the only way to identify the current links in all situations. A javascript solution fetches the class/id from the navigation link when it's clicked and store it in a cookie and with php you read out the coockie. But then you have to add the class to all navigational links on your pages too. I think you should do some tests to see which solution has the fastest rendering and the flexibility you need. |
Messages In This Thread |
xml based navigation structure within CI - by El Forum - 03-09-2009, 02:21 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 02:44 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 07:00 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 07:05 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 07:43 AM
xml based navigation structure within CI - by El Forum - 03-09-2009, 09:13 AM
|