How do I structure my site in phpwcms?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
agemmell
Posts: 22
Joined: Tue 7. Mar 2006, 20:05

How do I structure my site in phpwcms?

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
agemmell
Posts: 22
Joined: Tue 7. Mar 2006, 20:05

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
agemmell
Posts: 22
Joined: Tue 7. Mar 2006, 20:05

Post by agemmell »

Awesome!

Thanks Flip-Flop, that's fixed it.

Alex
Post Reply