Gossamer Forum
Home : Products : Gossamer Links : Discussions :

page.php?<defining template>

Quote Reply
page.php?<defining template>
Afternoon,
I have 4 categorys, each with there own template, but i have a default.php which is outside links sql, on that page I have 4 links, one to each category, As page.php is the first template page of home.html, I need to be able to define which template it goes to.

so for example:
Link 1 (default.php) links to > Stage2 page.php (default_php template)
Link 2 (default.php) Links to > Stage2 page.php (default_php2 template)
Link 3 (Default.php) links to > stage 2 page.php (default_php3 template)
......

the default_php templates are duplicated, but have a different home.html / category.html template files inside them, so tomake sure page.php is showing the right home.html (stage2) for the category selected at default.php (stage1), I need to assign a different template from the url path, so like www.domain.com/page.php?template=default_php2

And then have the categorys in links sql use the different template sets by main category, i.e : default.php2 template set.

Hope that makes sense heh,
Cheers.
Quote Reply
Re: [ryanbmedia] page.php?<defining template> In reply to
hello again, I've got it working but only on the cgi side, page.cgi?t=templatesetname,

but my problem is that the end link must be in php. Is there anyway around this? page.php?t=templatesetname just gives a template not found.

Cheers.
Quote Reply
Re: [ryanbmedia] page.php?<defining template> In reply to
You'd probably have better luck asking this in the php forum.