Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-05-10 06:59:28
- wispa
- Member
- Registered: 2012-05-10
- Posts: 10
Creating if_section
I was trying to multiple if_section tags but I don’t think I’m doing it right.
For example, I have this but it’s not working properly.
<txp:if_section name="home">
<a href=""><img src="/images/1.jpg" /></a>
<a href=""><img src="/images/2.jpg" /></a>
<txp:if_section name="visits">
<a href=""><img src="/images/1.jpg" /></a>
</txp:if_section>
</txp:if_section>
Offline
Re: Creating if_section
Hi and welcome to txp
You could try
<txp:if_section name="home">
<a href=""><img src="/images/1.jpg" /></a>
<a href=""><img src="/images/2.jpg" /></a>
</txp:if_section>
<txp:if_section name="visits">
<a href=""><img src="/images/1.jpg" /></a>
</txp:if_section>
to produce content depending on what section your visitor is looking at or
<txp:if_section name="home">
<a href=""><img src="/images/1.jpg" /></a>
<a href=""><img src="/images/2.jpg" /></a>
<txp:article_custom section="visits">
<a href=""><img src="/images/1.jpg" /></a>
</txp:article_custom>
</txp:if_section>
If you would like content from your “visits” section to appear in your “home” section.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1