Jump to content

Disable and Enable Links / Pages


unemployment

Recommended Posts

I imagine I just need to store which pages are active and inactive.

Yes that is what you'll need to do. If you're storing your pages within the database then add a field called active to the table that stores your pages. If you want the page to be visible set it to 1. Set to 0 when you dont want it to display.

 

In your PHP code you check to see if the field named active has 1 or a 0. If the field is set to 0 the don't display the link/page, if its set to 1 display the link/page.

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.