Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-02-01 22:17:55
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Excerpt shows with body
I’ve got an odd situation with one of my articles where it shows the excerpt after the body.
The form is used with other articles, sections as well so I cant figure out why this one would be a problem.
<txp:if_individual_article>
<div class="section full">
<txp:article_image class="article_img left" />
<h1><txp:title /></h1>
<div class="full">
<txp:if_custom_field name="event_date">
<span class="event_date"><txp:custom_field name="event_date" /></span>
</txp:if_custom_field>
<txp:if_custom_field name="event_location">
<span class="event_location"><txp:custom_field name="event_location" /></span>
</txp:if_custom_field>
<txp:if_custom_field name="event_sponsor">
<span class="event_sponsor">sponsored by: <txp:custom_field name="event_sponsor" /></span >
</txp:if_custom_field>
<txp:body />
</div>
<div class="clear"></div>
</div>
<txp:else />
</txp:if_individual_article>
If you’d like to the page in question:
http://oh.krd-design.net/about/community-partners
which is a link on /about
Any ideas whats causing this?
Thanks
Rich
(changed bc.
into bc..
-Els)
Last edited by els (2010-02-01 23:36:44)
Offline
Re: Excerpt shows with body
Set your site’s production status to “Debugging” to get a tag trace. Someone here will almost certainly look it over for you, and you can start learning how to use the tag trace to diagnose such problems.
Code is topiary
Offline
#3 2010-02-02 03:26:30
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Re: Excerpt shows with body
oh cool, thanks!
Ill work on that tomorrow and post my results.
Offline
Re: Excerpt shows with body
The form looks fine. You wouldn’t happen to have another “article” tag in the page template that calls this form?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2010-02-02 21:25:28
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Re: Excerpt shows with body
@jsoo – Nothing in particular is being out put on the page at issue.
Some redirect notices from zem_redirect – nothing else really.
@thebombsite – this is the only spot in the template:
<txp:if_section name="events">
<txp:article listform="section" form="full_article" sort="custom_5 desc" />
<txp:else />
<txp:article listform="section" form="full_article" />
</txp:if_section>
If I haven’t posted it already, here is the link:
http://oh.krd-design.net/about
Last edited by richtestani (2010-02-02 21:29:39)
Offline
Re: Excerpt shows with body
Title and body are coming from this code:
<txp:if_individual_article>
[<txp:if_individual_article>: true]
...
<txp:if_article_id id="74">
[<txp:if_article_id id="74">: true]
<txp:output_form form="full_article" />
...
<txp:body />
Excerpt and permlink come from the code that follows:
<txp:if_section name="events">
[<txp:if_section name="events">: false]
<txp:article listform="section" form="full_article" />
...
<txp:if_excerpt>
[<txp:if_excerpt>: true]
<txp:if_article_id id="74">
[<txp:if_article_id id="74">: true]
<txp:excerpt />
<txp:permlink />
So your output_form
call is calling an article form, which is effectively the same as having two article
tags in this case (individual article context).
Code is topiary
Offline
#7 2010-02-02 22:46:45
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Re: Excerpt shows with body
@jsoo – I see where you are referring to (and where the debugging was output)
I changed up the template and forms which cleared up the issue.
I was probably trying to do too much in a single template since some articles are over-rided and some make use of excerpt…
Thanks for your direction.
Rich
Offline
Pages: 1