bemania Posted July 2, 2009 Share Posted July 2, 2009 hi, i'm trying to create a simple cms (with php und sql). i'm working with a simple 2-column-layout (on the left side the navigation and on the right side the content). now i'm stuck. i can't find out how to do the following. [*]home [*]about us [*]references [*]contact now i want to insert a navigation button "products" in between "about us" and "references". i know how to add a button after "contact", but i want the cms-user to be able to choose where to place the new navigation button. what do i have to do for the cms-user to be able to place a new navigation-button where he desires to? i would be very greatful for some adivce. thx. bemania Link to comment https://forums.phpfreaks.com/topic/164568-arrange-navigation-buttons/ Share on other sites More sharing options...
iPixel Posted July 2, 2009 Share Posted July 2, 2009 I guess a simple way to do this would be to give these menus a sequence number, and the option to change, then based on the user you can just order by that #. Link to comment https://forums.phpfreaks.com/topic/164568-arrange-navigation-buttons/#findComment-868004 Share on other sites More sharing options...
bemania Posted July 2, 2009 Author Share Posted July 2, 2009 I guess a simple way to do this would be to give these menus a sequence number, and the option to change, then based on the user you can just order by that #. so you would suggest me to give eacht navigation-button a sequence number: 1 = home 2= about us 3= references 4= contact so you would assign to "products" the sequence-number "3" and move the "references" and "contact" each one number higher (4=references,5=contact)? i thought of this one before, but i can't get myself to like it. don't you think there is a more elegant way to solve this problem? Link to comment https://forums.phpfreaks.com/topic/164568-arrange-navigation-buttons/#findComment-868015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.