Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-07 17:23:35

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

exclude a category from if_excerpt

I am using the excerpt for podcasting purposes. it has a notextile in front of it so it’s not very appealing for any frontend use. is there a way to exclude this excerpt from showing up in my article list, and just use the body instead?

the if_excerpt tag doesn’t really have any parameters from what i know.

Offline

#2 2011-02-07 17:50:08

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: exclude a category from if_excerpt

Hi

Have you tried an if_article_category? that can help.

Offline

#3 2011-02-07 17:50:43

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

Re: exclude a category from if_excerpt

mrtunes wrote:

I am using the excerpt for podcasting purposes. it has a notextile in front of it so it’s not very appealing for any frontend use. is there a way to exclude this excerpt from showing up in my article list, and just use the body instead?

Hi

check out your pages and/or forms to see where excerpt appears in the article list context and you can replace with something like:

<txp:if_article_list>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:body />
</txp:if_article_list>

Having said that, it sounds like you might be able to use a custom_field instead of the excerpt for what you are doing.


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

Online

#4 2011-02-09 04:45:10

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: exclude a category from if_excerpt

hey thanks for the replies. just to back up a bit, i started using the excerpt area because for some reason, rss_auto_excerpt wasn’t working inside an article_custom loop that i was running inside rah_external_output.

i did try using something like if_article_category, but it start to complicate things a lot. in the meantime i am just going to use a custom_field, because that should be sufficient characters for iTunes.

Offline

Board footer

Powered by FluxBB