Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-06-22 13:31:15

yonnermark
Member
Registered: 2006-03-23
Posts: 35

Header image just for homepage

Is there some code I can insert around a head image so that it only appears on my homepage and not on my internal pages? I’m quite basic with my TXP coding but am hoping there is a tag I can use to achieve this.

Thanks in advance for any tips.

:)
Mark

Offline

#2 2010-06-22 13:35:53

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Header image just for homepage

HI,
You could wrap the image (or any other code ) with <txp:if_section name=”“>your_img.jpg</txp:if_section>

Offline

#3 2010-06-22 17:56:00

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Header image just for homepage

@yonnermark Yes, you should definitely embrace, inhale, live & love this page:

textbook TXP Tag_Reference

Tip: The reference lives a healthy life in my browser as ‘txptag’ shortcut :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#4 2010-06-22 18:45:36

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: Header image just for homepage

or you can use if_soo_fronpage plugin


<txp:txp_me />

Offline

#5 2010-06-22 21:04:00

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Header image just for homepage

Katalonian wrote:

or you can use if_soo_fronpage plugin

Thanks Katalonian; soo_if_frontpage might well be a good choice for yonnermark depending on exactly what condition he wants to test. As pointed out above if_section is all that’s needed if the test is whether the page is in the default section vs. some other section. soo_if_frontpage tests for additional conditions.


Code is topiary

Offline

Board footer

Powered by FluxBB