smart Posted February 3, 2012 Share Posted February 3, 2012 Hi everyone i want to position my navigation in custom cms can anyone tell me how i can do this.Thanks Link to comment Share on other sites More sharing options...
birbal Posted February 3, 2012 Share Posted February 3, 2012 You can use http://php.net/include Link to comment Share on other sites More sharing options...
smart Posted February 3, 2012 Author Share Posted February 3, 2012 Hi you didn't understand my point i mean to say i have created dynamic pages through custom CMS but i want the admin can change the position of the pages according to his wish for example [Home(position1), About Us(position2),Services(position3),Blog(position4),Contact(position5)) if admin changes position of Contact page from 5 to About Us in 2nd positon then how i can write query for this situation.Now i want this result [Home(position1), Contact(position2),Services(position3),Blog(position4),About Us(position5)).I have created the position in SQLbut don't know how to shuffle the name and position of the pagePlease help. Link to comment Share on other sites More sharing options...
dsonesuk Posted February 3, 2012 Share Posted February 3, 2012 Normally! if this uses a table to store menu links, you would use the menu id ref, or field that defines its position within the menu, then you can use ORDER BY to sort the menu by this specific fields. Link to comment Share on other sites More sharing options...
smart Posted February 6, 2012 Author Share Posted February 6, 2012 how i can set the position of my navigation in my custom cms in php and mysql.Pls help Link to comment Share on other sites More sharing options...
dsonesuk Posted February 6, 2012 Share Posted February 6, 2012 We can't answer that! we have no idea how your menu is set up, how it is produced using sql? don't know? if you can't provide more details we can only give what normally would be done. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.