hey_im_chris Posted July 15, 2006 Share Posted July 15, 2006 Hey everyone ^_^I'm working on a design for something at the moment, and I'm hoping some simple PHP can make things a bit easier for me. What I want to achieve is when a user clicks on a link to one of the galleries, a new page appears and depending on the name of the link, the corresponding album.php and title.gif appear on it's index.php. I imagine this can be achieved with a template.For example:[pre]1. User clicks on a link called abc.php.2. A new page appears that has the main layout/design on it.3. abc/imgs/album.php loads into an iframe, and abc/title.gif loads at the top of the page.[/pre] (all links are relative to the main directory)I could do this manually, but I have 79 pages to create and growing. Semi-automation would be superb! Any advice? :) Quote Link to comment https://forums.phpfreaks.com/topic/14697-phptemplate-page-auto-creation/ Share on other sites More sharing options...
AndyB Posted July 16, 2006 Share Posted July 16, 2006 It would be easier if the link they clicked was in the form template.php?gallery=abcThen in template.php you can retrieve the passed value of the gallery name (from the $_GET array) and then construct $gallery/imgs/album and $gallery/title.gif to use as needed by the template.Maybe that'll give you some ideas you can use. Quote Link to comment https://forums.phpfreaks.com/topic/14697-phptemplate-page-auto-creation/#findComment-58726 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.