Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-11-06 13:14:19
- ricoschette
- Member
- From: Estonia
- Registered: 2005-09-17
- Posts: 176
different article types
Sorry for a bit confusing title. I’m not sure how to describe my problem better.
So, I have a website here: link
There’s products list and introduction text in front of it.
Now, when you click on the product, it goes to the product detail page: link
There’s a intro text above that I don’t need there.
Product section page template:
<div class=“kolm-toodet”>
<h3><txp:section title=“1” /></h3>
<p>Mööbliseifid (koduseifid). Seifide universaalseim liik, sest soodne hind ja hea kvaliteet on ostu peamised kriteeriumid. Selliseid seife ostetakse tavaliselt korteritesse paigaldamiseks. Neil on ka olemas augud seinale voi porandale kinnitamiseks.</p>
<p>Nende hulka kuuluvad seifid firmalt Vildeta (DB-01, DB-02, DB-03 ja odavamad mudelid Â-1, Â-2, Â-3 ja Â-5). Samuti on olemas seifid firmadelt ARFE (BASICS, FIRE RESISTANTS, WALL ja CHAMBER tuubid) ja VildEst (tüüp TK).</p>
<txp:article form=“product-article” limit=“99” listform=“products-list” />
</div>
So, the h3 and p is written in the template, that’s the intro part. Not separate article. That’s because the article list form is not suitable for it (includes product image and link, title, no body txt).
So, what should I do to avoid intro section appearing in product detail page?
Tnx!
Last edited by ricoschette (2009-11-06 13:16:46)
Offline
#2 2009-11-06 13:29:37
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: different article types
Put an if_individual_article
tag around it, like so:
<txp:if_individual_article>
<txp:else />
<p>Mööbliseifid ... etc. ... ja VildEst (tüüp TK).</p>
</txp:if_individual_article>
Note that you have to put the unwanted paragraph below the else tag.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2009-11-06 18:13:36
- ricoschette
- Member
- From: Estonia
- Registered: 2005-09-17
- Posts: 176
Re: different article types
Thank you uli!
That works like a charm.
Offline
Pages: 1