Jump to content

howto create context sidebar menus


el-sid

Recommended Posts

Hi,

 

I have two tables: category and articles. They have a one-to-many relationship.

 

category: id, name, is_menu[true/false]

articles: id, category_id, title, content

 

what i do is i retrieve all items in the category table that have is_menu set to true, to create a menu item. The idea should be that when i click on the menu, the page should show me the latest article from that category. on the sidebar, it should show me links of other article titles within that category. something like this: http://www.uapkenya.com/about-uap/

 

does anyone know how to go about this? I don't need you to show me code, just some pointers on how to go about it.

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/207105-howto-create-context-sidebar-menus/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.