Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-06-09 05:42:25

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Tag error: <txp:else /> ... !?

I’m working on a new site (heavily under construction) > mariaberkhout.nl/new and I’m using this snippet >

<if_individual_article>
<txp:article form="single_notitle" limit="1" />
<txp:else />
<txp:article form="single_onlyimage" wraptag="ul" class="small-block-grid-2 medium-block-grid-3 large-block-grid-4" break="li" limit="12" sort="rand()" />
</if_individual_article>

Form ‘single_notitle’ >

<article role="article" itemscope itemtype="http://schema.org/Article">
<!-- <h1 itemprop="name"><txp:title /></h1> -->
<div itemprop="articleBody">
<txp:body />
</div>
</article>

Form ‘single_onlyimage’ >

<article role="article" itemscope itemtype="http://schema.org/Article">
<!-- <h1 itemprop="name"><txp:title /></h1> -->
<div itemprop="articleBody">
<txp:article_image thumbnail="1" />
</div>
</article>

And I’m getting this error > “Tag error: <txp:else /> -> Textpattern Warning: tag does not exist while parsing form None on page 1984-1993”

!?

Offline

#2 2014-06-09 06:36:25

etc
Developer
Registered: 2010-11-11
Posts: 5,388
Website GitHub

Re: Tag error: <txp:else /> ... !?

I guess it should be <txp:if_individual_article>, not <if_individual_article>.

Offline

#3 2014-06-09 06:39:12

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Re: Tag error: <txp:else /> ... !?

Arggg … working between Roland Garros and Pinkpop (telly) … that’s no good … :%

Last edited by RedFox (2014-06-09 06:40:12)

Offline

Board footer

Powered by FluxBB