How do I structure my site in phpwcms?
Posted: Mon 24. Apr 2006, 17:53
I'm a bit confused and need some help! All I want is to have a very simple site structure like this:
Homepage - Page1 - Page2 - Page 3
In other words I have no plans for any "sub pages", just a handful of pages all on the same "category/level". The problem is I can't seem to work out how to have a particluar template for the Homepage and a seperate template for Page1 and another for Page3, etc...
I thought I could have this:
Home [root category]
-- homepage [article]
-- page1 [article]
-- page2 [article]
BUT the articles all have to have the same template which is not what I want. So I added some sub-categories so the structure looked like this:
Home [root category]
-- Homepage [sub category]
---- homepage [article]
-- Page1 [sub category]
---- page1 [article]
-- Page2 [sub category]
---- page2 [article]
That solved the template problem because I make the sub categories have different templates and so the articles in them also have those different templates. However this doesn't seem correct - it looks clumsy and over complicated. Am I just being silly?
One REAL problem with this structure is the browser page title. It now reads:
[layout title]|[category name]|[article name]
So if I follow the examples above will be:
Jinja Ninja | Page1 | page1
I understand WHY this has happened (because of the way I had to structure the site) but this is not exactly what I wanted! I just want "Jinja Ninja | Page1".
So can anyone help me here? How can I have the structure:
Home [root category]
-- homepage [article]
-- page1 [article]
-- page2 [article]
but each article using different templates?
Or perhaps this structure:
Home [root category]
-- Homepage [sub category]
---- homepage [article]
-- Page1 [sub category]
---- page1 [article]
-- Page2 [sub category]
---- page2 [article]
but with the browser page title saying what I want it to say?
Any help gratefully recieved!
Alex
http://www.jinja-ninja.co.uk
Homepage - Page1 - Page2 - Page 3
In other words I have no plans for any "sub pages", just a handful of pages all on the same "category/level". The problem is I can't seem to work out how to have a particluar template for the Homepage and a seperate template for Page1 and another for Page3, etc...
I thought I could have this:
Home [root category]
-- homepage [article]
-- page1 [article]
-- page2 [article]
BUT the articles all have to have the same template which is not what I want. So I added some sub-categories so the structure looked like this:
Home [root category]
-- Homepage [sub category]
---- homepage [article]
-- Page1 [sub category]
---- page1 [article]
-- Page2 [sub category]
---- page2 [article]
That solved the template problem because I make the sub categories have different templates and so the articles in them also have those different templates. However this doesn't seem correct - it looks clumsy and over complicated. Am I just being silly?
One REAL problem with this structure is the browser page title. It now reads:
[layout title]|[category name]|[article name]
So if I follow the examples above will be:
Jinja Ninja | Page1 | page1
I understand WHY this has happened (because of the way I had to structure the site) but this is not exactly what I wanted! I just want "Jinja Ninja | Page1".
So can anyone help me here? How can I have the structure:
Home [root category]
-- homepage [article]
-- page1 [article]
-- page2 [article]
but each article using different templates?
Or perhaps this structure:
Home [root category]
-- Homepage [sub category]
---- homepage [article]
-- Page1 [sub category]
---- page1 [article]
-- Page2 [sub category]
---- page2 [article]
but with the browser page title saying what I want it to say?
Any help gratefully recieved!
Alex
http://www.jinja-ninja.co.uk