Page 1 of 1

How do I structure my site in phpwcms?

Posted: Mon 24. Apr 2006, 17:53
by agemmell
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

Posted: Mon 24. Apr 2006, 18:30
by flip-flop
Hi agemmell,
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
.
.... what I wanted! I just want "Jinja Ninja | Page1".
Thats very simple:
----------------------------------------------------
page layout:
page title: [.......................................]
add to title: [x] category [ ] article name
----------------------------------------------------
Home [root category]
-- Homepage [sub category]
---- homepage [article]

-- Page1 [sub category]
---- page1 [article]

-- Page2 [sub category]
---- page2 [article]
From my view that is the right way.

Gruß Knut

Posted: Mon 24. Apr 2006, 18:59
by agemmell
Thanks Flip-Flop. I'll keep that structure.
flip-flop wrote: Thats very simple:
----------------------------------------------------
page layout:
page title: [.......................................]
add to title: [x] category [ ] article name
Can you explain this in more detail please - I don't understand what you mean?

Thanks,

Alex

Posted: Mon 24. Apr 2006, 19:57
by flip-flop
Hi,

at ADMIN -> page layout: you have the
page title: [Jinja Ninja] and the
add to title: [x] category [ ] article name

means at the title of the page the string "Jinja Ninja | Page1" will be used.

e.G.
category name = Page1 ==> "Jinja Ninja | Page1"
category name = Page2 ==> "Jinja Ninja | Page2"

If the title shows this line: Jinja Ninja | Page1 | page1
the following settings were made:
page title: [Jinja Ninja] and the
add to title: [x] category [x] article name

Gruß Knut

Posted: Tue 25. Apr 2006, 11:59
by agemmell
Awesome!

Thanks Flip-Flop, that's fixed it.

Alex