Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-24 15:26:43

mrjon
New Member
Registered: 2008-08-24
Posts: 5

Different images to static pages

I’m about to create a site with a number of static pages. My question is if there’s a way to display static pages from the same section and give every static page an own header image.

Example:

I have one section that I want to contain a number of static pages. For example section/prices and I want the prices page to have a unique image in the header; the image is not included in the textarea in Textpattern.

Does anyone have a solution to my problem?

Offline

#2 2008-08-24 16:42:12

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Different images to static pages

You can use if_article_id for this.

Each article has its own id number, so its quite easy to do what you want.

Offline

#3 2008-08-24 16:54:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Different images to static pages

I’d use if_section in order to leave enough room for potential changes. Thus you wouldn’t need to remember altering the page’s code each time this happens.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2008-08-24 18:18:10

mrjon
New Member
Registered: 2008-08-24
Posts: 5

Re: Different images to static pages

Thanks alot for your replies!

I think that “if artice id” will do it for me.

Offline

Board footer

Powered by FluxBB