Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi All

I am in the process of building a website for a Cake Shop which will require multiple product galleries. The galleries (separate pages as of now) are divided into Regular / Premium / Customized variants.

I have made a base page for the regular cakes category using the Gallery tutorial. However for the other pages I have made copies of the same page & renamed them eg: premium-cakes.php

I think this is a a crude way of doing thing. Ideally I would like to have a single gallery page (say products.php) and multiple category pages (regular-cakes.php, premium-cakes.php). In the products page I would like to have a drop down where I can select the category and the images are displayed in the relevant pages.
Hi Alok,

I think this should be fairly straightforward to implement using a single template (e.g. cakes.php) and then creating 'folders' for each category e.g. 'regular', 'customized' , 'premium'.

With prettyURLs, the links would look like
http://www.yoursite.com/cakes/
http://www.yoursite.com/cakes/regular/
http://www.yoursite.com/cakes/customized/
http://www.yoursite.com/cakes/premium/

where the first link would be the 'home-view' and the rest would be the 'folder-views'.
A folder view will show only cakes belonging to that particular folder while the home-view may show all the cakes with a dropdown that lists the folders (i.e. categories).

Selecting a folder from the dropdown would lead to the folder-view of the selected folder.
Please search this forum and you'll find example code for the dropdown (I recall @cheesypoof posting it).

Hope this helps.
2 posts Page 1 of 1
cron