Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-14 05:24:31

holygeez
New Member
Registered: 2009-05-14
Posts: 7

excerpt of article to appear

I want the excerpt to appear in a certain section of the layout when a visitor lands on that article/webpage. How do i get the relevant excerpt to appear when landing on that article? I tried inserting <txp:excerpt /> inside the proper form, but I get an error saying that Article tags cannot be used outside an article context How do I do this properly?

I also tried;

<txp:if_excerpt />
     <txp:excerpt />
<txp:else />
</txp:if_excerpt />

Last edited by holygeez (2009-05-14 05:25:23)

Offline

#2 2009-05-14 05:26:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: excerpt of article to appear

Try

<txp:article>
<txp:if_excerpt>
     <txp:excerpt />
<txp:else />
<txp:body />
</txp:if_excerpt>
</txp:article>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-05-14 16:33:24

holygeez
New Member
Registered: 2009-05-14
Posts: 7

Re: excerpt of article to appear

ah…didn’t know I could use the article tag to wrap around the rest to get it to function. thanks!

Offline

Board footer

Powered by FluxBB