Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
Re: Header image just for homepage
@yonnermark Yes, you should definitely embrace, inhale, live & love this page:
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
Re: Header image just for homepage
or you can use if_soo_fronpage plugin
<txp:txp_me />
Offline
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
Pages: 1