• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a good navigation ?

#2
[eluser]kgill[/eluser]
First may I offer a pointer:
If you want help with something, don't post links and say read this so you can help me. Most of us don't have the time to do extra reading. Instead, try and summarize what it is you want to do and need help with.

Since I read a list apart I happen to know what you're talking about - and the answer is: only if you make it.

The articles are about generic concepts to use in your display logic - so yes it's possible with CI but then it's possible with just about any web language/framework. CI is a programming framework, not a drop in solution - how a site ends up looking and working is entirely up to the person coding the models, views and controllers. While CI has built-in helpers to make common stuff easier, something like customizing the way your links display in your views is most definitely in the realm of the developer/designer and not the framework itself.

As for how to do it, the most basic would be to pass the name of the current controller to the view and have an if statement for each link to see if it should display the current page plain text version or the linked version. Alternatively, you could pass the nav elements in an array and handle it in a loop, use views within views, etc. How you choose to implement it is a matter of personal preference.

- K


Messages In This Thread
How to make a good navigation ? - by El Forum - 07-02-2007, 11:10 AM
How to make a good navigation ? - by El Forum - 07-02-2007, 12:58 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.