Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2007-01-04 15:28:56

eric2007
Member
Registered: 2006-05-25
Posts: 18

Re: [plugin] [ORPHAN] rss_auto_excerpt

Is there a way to get this to auto-excerpt the Body content no matter what? As in, show the first 50 words of an article body, even if it already has content in the txp:excerpt field.

(Or, alternatively, suppose I want the first 100 words, txp:excerpt and txp:body included: if my txp:excerpt has 60 words, then show the whole excerpt and the first 40 words of the body.)

Offline

#42 2007-01-04 15:33:48

eric2007
Member
Registered: 2006-05-25
Posts: 18

Re: [plugin] [ORPHAN] rss_auto_excerpt

Don’t know how I missed this: looks like overrideexcerpt=“1” will do just that. You guys have thought of everything.

Offline

#43 2007-01-04 22:36:19

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

eric2007 wrote:
Don’t know how I missed this: looks like overrideexcerpt=“1” will do just that. You guys have thought of everything.

Almost everything…

rss_auto_excerpt 0.3

The latest version of the plugin adds a few new attributes that allow you to specify which field to use for the excerpt and body. This will allow you to use any article field (i.e., a custom field) to generate your excerpt. There is also a new excerptwraptag attribute so that you can wrap the auto-excerpt in an HTML tag.

For example, if you have a custom field called AnotherExcerpt and wanted to show that field if it has data, otherwise you want to show the normal excerpt field, call the plugin as follows:

<txp:rss_auto_excerpt excerpt="AnotherExcerpt" body="excerpt" excerptwraptag="p" length="500" />

Download rss_auto_excerpt

Offline

#44 2007-01-24 18:58:19

gluteus
Member
From: Switzerland
Registered: 2007-01-20
Posts: 74

Re: [plugin] [ORPHAN] rss_auto_excerpt

Is it possible, that the attribute excerptwraptag did not work? I tried it with “span”, there is no change if I look the source of the page. It is still wrapped in “p”.

Any ideas? Help is welcome!

dave

Offline

#45 2007-01-25 00:41:00

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Depends how you’re calling the plugin. Right now that attribute will only work when overrideexcerpt is not true and the excerpt field is not empty. So if an auto excerpt is generated, the excerpt wrap tag is not used. That should probably be corrected in the next version.

Offline

#46 2007-01-25 06:07:53

gluteus
Member
From: Switzerland
Registered: 2007-01-20
Posts: 74

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hello Rob

That’s it. I am using auto excerpt.
My goal was (is) that the “read more” text is on the same line as the “…” ending, while I’m using auto excerpt.

Thank you anyway for your great plugin!

For my goal I “cheat” with the following tag:
<txp:rss_auto_excerpt words=“12” linkwraptag=“span” striptags=“1” linktext=“read more” /> this way it is on the same line.

Thank you for responding.

dave

Offline

#47 2007-01-25 07:32:42

jusisan
New Member
From: Helsinki, Finland
Registered: 2006-05-13
Posts: 4

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hi again. As no-one seems to have the same problems I’ve had (or has run into them), here’s the problem again:

The goal is to produce the leading paragraph to another column than the rest of the article. The following fails with rss_auto_excerpt 0.4 in an article form:

<div class="column upper1">
 <txp:rss_auto_excerpt paragraphs="1" showlinkwithexcerpt="0" overrideexcerpt="1"  />
</div>
<div class="column upper2">
 <txp:rss_auto_excerpt skipparagraphs="1" paragraphs="9999" showlinkwithexcerpt="0" overrideexcerpt="1"  />
</div>

The plugin is great, but does not seem to cope with this kind of use. The only way to get it working is to match the number of paragraphs in the second column with the exact length of the article. Like this (if the article contains five paragraphs):

<div class="column upper1">
 <txp:rss_auto_excerpt paragraphs="1" showlinkwithexcerpt="0" overrideexcerpt="1"  />
</div>
<div class="column upper2">
 <txp:rss_auto_excerpt skipparagraphs="1" paragraphs="5" showlinkwithexcerpt="0" overrideexcerpt="1"  />
</div>

Not really handy when the content is supposed to be produced by someone with no technical understanding – or even access to the forms. Help, anyone? Rob?

Offline

#48 2007-02-12 20:42:50

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hello,

I’m attempting to create a “drop-cap” and I think the feature that keeps the plug-in from cutting off the middle of a word is preventing it from allowing length=“1”

Everything else has been working properly…just discovered this issue today.

Any ideas?


Tom

Offline

#49 2007-02-13 15:30:48

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Anyone able to test for me and see if they can get the following to output properly:

<txp:rss_auto_excerpt length="1" ending="..." striptags="1" />

Thanks,
Tom

Last edited by renobird (2007-02-13 15:38:58)

Offline

#50 2007-02-13 15:55:43

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

tom,
it doesn’t work for me either.


Offline

Board footer

Powered by FluxBB