Dynamically Generated Navigation |
[eluser]dobbler[/eluser]
Hi, I'm in a bit of a pickle in that I've committed to a large project and am a complete newbie with CI. Hopefully someone can help with the logic behind outputting a dynamic navigation. I'm trying to emulate this type of nav and I have three tables in my db like so: PrimaryNav PrimaryNavId (INT) PK PrimaryNavText (VARCHAR 100) PrimaryNavTitle (VARCHAR 100) SecondaryNav SecondaryNavId (INT) PK PrimaryNavId (INT) SecondaryNavTitle (VARCHAR 100) SecondaryNavText (VARCHAR 100) SecondaryNavBody (VARCHAR 100) UserId (INT) DatePosted (DATETIME) TertiaryNav TertiaryNavId (INT) PK SecondaryNavId (INT) TertiaryNavTitle (VARCHAR 100) TertiaryNavText (VARCHAR 100) TertiaryNavBody (VARCHAR 100) UserId (INT) DatePosted (DATETIME) The HTML output from CSSPlay.co.uk is: Quote:<ul id="nav"> And obviously there's a css file that goes with it.. My brain is just not getting around it.. Any help on this would be greatly appreciated. I'm somewhat freaking out! Thanks in advance. Rob.
[eluser]Colin Williams[/eluser]
Ha! That code is whack! I don't think, even in the dark ages, I ever saw a <table> element inside an <a> element. Anyway, you got that from a run-of-the-mill CSS site and didn't craft it yourself, so I guess I can't hold YOU accountable for that... About your situation, I'm not sure you can learn this craft in enough time to satisfy your client. You're stab at setting up that database shows a severe lack of discipline in this arena, particularly in database design and normalization. Looks like you need a CMS, like Drupal or ExpressionEngine. Don't build your own at this point. And don't offer to mow someone's lawn if you don't know how to operate a lawn mower. I'm just sayin'... |
Welcome Guest, Not a member yet? Register Sign In |