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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.