Jump to content

Organizing and structuring content with PHP


ultrasound0000

Recommended Posts

I need some ideas/ coding suggestions for what I'm trying to accomplish.

 

Let's say I have a section called "Products" and within this section I have 30 different products. I don't have a DB. 

 

To avoid maintaining a page for each product every time I have to update something, I'm using a product "main" page where I include files for the left navigation, or content for the right of the page which changes based on the product category.  To include files based on categories I'm passing url variables through the links, which is how my main template knows what page to include.

 

This works fine, but I'm trying to figure out a better structure for including different files based on the product, where I don't have to pass url variables ... any ideas what options I have?

 

Passing url variables might hurt my SEO rankings but also it requires maintaining and updating and many links on this section.

with pure PHP, the only way to pass data from page to page is with cookies, sessions, and post/get variables. if you dont want to use get variables, I would suggest you use sessions, but beyond that you will probably have to find a non-php solution. i guess you could use cookies, but I dont know how useful cookies would be for this

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.