Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Overiding Article output (at Article level)
I use rss_auto_excerpt which is fandabbydozy!
However, I occasionally don’t need an auto excerpt generated as I write it manually in the excerpt field. Great!
The problem
… is that there is always a “read more” link automatically generated and in the above scenario it’s not necessary.
My approach
I thought “aha” i’ll override the page output with another article form where no auto excerpt is used.
My failure :-(
The forms i assign don’t effect the article-list output, but only the individual article page.
default page code
<txp:article_custom category="ALLES-behalve-Acties-Nieuws" sort="LastMod desc" limit="3" form="MTS_article_default" allowoverride="1" />
Question
How can i affect the output of the article list via de article>write page and avoid the auto link generation?
Last edited by Timid&friendly (2007-10-05 08:23:04)
I think, therefore I AM, … … er … I think :-?
Offline
Re: Overiding Article output (at Article level)
Use brains and the Alphabetical Tag Listing. So you will find:
In example:
<txp:if_individual_article>
<txp:body />
<txp:else />
<txp:if_excerpt>
<txp:excerpt />
<txp:else />
<txp:rss_auto_excerpt paragraphs="1" />
</txp:if_excerpt>
</txp:if_individual_article>
Cheers!
Offline
Re: Overiding Article output (at Article level)
Gocom Thanks very much. With your help I am able to achieve the desired effect.
I am now able to turn of the “read more” link at article level using an if_custom_field tag. For completeness I have posted my solution, as I am sure other noobs like myself will benefit from this thread.
<txp:if_excerpt>
<txp:if_custom_field name="No_read_more_link" val="1">
<txp:excerpt />
<txp:else />
<txp:rss_auto_excerpt length="350" wrapreadmore="1" linkwraptag="" linkclass="morelink" ending="... " linktext="My read me text" />
</txp:if_custom_field>
<txp:else />
<txp:if_custom_field name="No_read_more_link" val="1">
<txp:body />
<txp:else />
<txp:rss_auto_excerpt length="350" wrapreadmore="1" linkwraptag="" linkclass="morelink" ending="... " linktext="My read me text" />
</txp:if_custom_field>
</txp:if_excerpt>
Cheers
I think, therefore I AM, … … er … I think :-?
Offline