Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-11-10 18:28:57
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
newb. Problem with outputting full articles
The following code snippet:
<txp:if_individual_article>
<txp:article form="full_article" />
<txp:else />
<txp:article form="article_list_readmore" />
</txp:if_individual_article>
The above properly outputs a listing of articles within a section using the form ‘article_list_readmore’.
But going to the permlink, while shows the single article – it displays the excerpt.
The forms look like:
‘article_list_readmore’
—————————————-
<div class="section">
<h2><txp:title /></h2>
<txp:if_custom_field name="event_date">
<p class="event_date"><txp:custom_field name="event_date" /></p>
</txp:if_custom_field>
<txp:if_custom_field name="event_location">
<p class="event_location"><txp:custom_field name="event_location" /></p>
</txp:if_custom_field>
<txp:excerpt /><txp:permlink>Read More</txp:permlink>
</div>
‘full_article’
—————————————-
<txp:body />
any ideas why this is?
Thanks
Rich
(added bc.
s for better code display. -Els)
Last edited by els (2009-11-10 19:57:43)
Offline
Re: newb. Problem with outputting full articles
You don’t need the <txp:if_individual_article>
you can use
<txp:article form="full_article" listform="article_list_readmore" />
More details available at textbook
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#3 2009-11-10 19:34:43
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Re: newb. Problem with outputting full articles
Hmm – im still getting the same results.
This is the page in question.
http://oh.krd.webhop.net/what-we-do/
clicking read more for the first article, goes to the permalink which is the same as the excerpt.
Offline
#4 2009-11-10 19:39:29
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Re: newb. Problem with outputting full articles
ok – i got it going.
just curious – was my code incorrect?
While the one line is more efficient, what was up with the if else?
Last edited by richtestani (2009-11-10 19:40:43)
Offline