Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] rss_auto_excerpt
chosig,
feel free to take your time to figure out TXP, you’ll find its really worth it…in the meantime:
in your page:
<txp:article limit="1"/>
<txp:artcile form="auto_excerpt_p1" limit="4" />
in a form called “auto_excerpt_p1” (or whatever you want to call it to match your naming conventions)
<txp:permlink><txp:title /></txp:permlink>
<txp:rss_auto_excerpt paragraphs="1" />
That’s the simplest method. You can always add more attributes if you like.
:)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
thanks a bunch ma_smith – took a few until i saw that you had a typo (cut n’ pasted)…
I now have this, and it works like a charm:
default page template (cropped):
<txp:article limit="1"/>
<txp:article form="blog_excerpt" limit="4" />
and my blog_excerpt form (full)
<txp:gbl_if_not_first_article>
<txp:permlink><txp:title /></txp:permlink>
<txp:rss_auto_excerpt paragraphs="1" />
</txp:gbl_if_not_first_article>
had some issues with a “double”, the lastest article was shown both in full and in the excerpts, which I saw I wasn’t the only one to have problems with – thus the gbl_if_not_first_article, I made a plugin (wee :P), well… actually i just reversed the if_first_article core tag, and i’ve also figured out that first three letter is to identify the author?
I’m pasting the plugin here, not the right place I know, but can somebody that actually knows what they’re doing have a look at it, and if I’m not way off the mark I’ll put it where it belongs (textpattern.org?).
YToxMDp7czo0OiJuYW1lIjtzOjI0OiJnYmxfaWZfbm90X2ZpcnN0X2FydGljbGUiO3M6MTU6
ImFsbG93X2h0bWxfaGVscCI7aTowO3M6NzoidmVyc2lvbiI7czozOiIwLjEiO3M6NjoiYXV0
aG9yIjtzOjI1OiJHdW5uYXIgImNob3NpZyIgTHVuZHN0cm9tIjtzOjEwOiJhdXRob3JfdXJp
IjtzOjIzOiJodHRwOi8vc3BhY2V3YXN0ZXIubmV0LyI7czoxMToiZGVzY3JpcHRpb24iO3M6
NDQ6IkV4YWN0IG9wcG9zaXRlIG9mIGNvcmUgdGFnIGlmX2ZpcnN0X2FydGljbGUuIjtzOjQ6
InR5cGUiO2k6MDtzOjQ6ImhlbHAiO3M6MTE5OiIKRXhhY3Qgb3Bwb3NpdGUgb2YgY29uZGl0
aW9uYWwgY29yZSB0YWcgaWZfZmlyc3RfYXJ0aWNsZSwKaXQnbGwgZXhlY3V0ZSBjb2RlIHdp
dGhpbiBpZiBpdCBpcyBfbm90XyB0aGUgbGF0ZXN0IGFydGljbGUuCiI7czo0OiJjb2RlIjtz
OjE2MjoiCmZ1bmN0aW9uIGdibF9pZl9ub3RfZmlyc3RfYXJ0aWNsZSAoJGF0dHMsICR0aGlu
ZykKewoJZ2xvYmFsICR0aGlzYXJ0aWNsZTsKCWFzc2VydF9hcnRpY2xlKCk7CglyZXR1cm4g
cGFyc2UoRXZhbEVsc2UoJHRoaW5nLCBlbXB0eSgkdGhpc2FydGljbGVbJ2lzX2ZpcnN0J10p
KSk7Cn0KIjtzOjM6Im1kNSI7czozMjoiMDkyZGM5YTU2MjQwY2U3MjczZGU3NDk3NDRhYzYx
YjgiO30=
Last edited by chosig (2007-03-18 19:04:15)
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
chosig,
you can simply use the offset attribute in the article tag to avoid the doubling issue :) sorry about the typo.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
ma_smith wrote:
chosig,
you can simply use the offset attribute in the article tag to avoid the doubling issue :) sorry about the typo.
how can i use the offset in the article tag since the output of the excerpts are controlled with the plugin?
and while I’m at it, there isn’t a way to not out put the “read more…” link if there isn’t more to read? just realised that I have a bunch of one paragraph posts… ;-)
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
chosig,
it is the article tag that produces the output, the auto_excerpt is part of the form. You may need to touch up on your wiki or faqs before you go further :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
Great plugin. Just one question, is there a way to turn off the “read more” link for articles that are fully excerpted, in other words, a single paragraph post would not need a “Read more” link when using a paragraph as the excerpt length. I thought maybe the showlinkwithbody option has something to do with it but apparently not?
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
showlinkwithbody
Determines whether the permlink to the article will be shown when the article body is displayed because the generated excerpt is not shorter than the article body.
Default: 0 (No, don’t show … It is turned OFF by default when the parameter is NOT set/visible)
Example: showlinkwithbody=“1”
If this doesn’t work it must be a bug :-).
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
Thanks, merz1, that’s what I thought. I have:
.bq <txp:rss_auto_excerpt paragraphs=“1” linkclass=“continue” showlinkwithbody=“1” />
but still can’t get it to work. I’ll look at it again, maybe there’s something about my article or form that makes the plugin think it has more than one paragraph.
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
trailgirl- I think you want to use:
<txp:rss_auto_excerpt paragraphs="1" linkclass="continue" showlinkwithbody="0" />
That would mean that the Read More link would not be generated when the full body of the article is being displayed.
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
rss_auto_excerpt 0.5
The latest version adds two new attributes to the plugin.
- wrapreadmore – wraps the read more link within the last closing tag of the auto-excerpt which has been requested many times including here earlier in this thread.
- stripbreakstabs – strips out line breaks and tabs when generating the auto-excerpt. This was added based on Nathan Smith’s idea of using the plugin to generate content for the meta description tag in his post Lazy Textpattern SEO
For example, place the read more link within the last closing tag with the read more link wrapped in a span tag:
<txp:rss_auto_excerpt length="30" ending="..." wrapreadmore="1" linkwraptag="span" />
Offline
#86 2007-04-20 14:36:49
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] rss_auto_excerpt
hello Rob, very nice plugin.
I have one problem, though: I can’t manage to wrap the excerpt in a <span> rather than in <p>.
when I set excerptwraptag="span" he just spits: <span><p> . . . . . </p></span> .
Is it a bug or I’m missing something?
Thank you
what was that again…?
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
feragnoli wrote:
hello Rob, very nice plugin.
I have one problem, though: I can’t manage to wrap the excerpt in a<span>rather than in<p>.
when I setexcerptwraptag="span"he just spits:<span><p> . . . . . </p></span>.
Is it a bug or I’m missing something?
The <p> tags are likely from textile. You can either turn textile off for your excerpts or use a custom field for your excerpt.
Offline
#88 2007-06-04 09:44:08
- jonnott
- New Member
- Registered: 2007-06-04
- Posts: 2
Re: [plugin] [ORPHAN] rss_auto_excerpt
I’m looking to implement something similar to rss_auto_excerpt’s paragraph functionality, but outside of txp – is there any way to get a peek at the source code without actually having txp and installing the plugin?
Offline
#89 2007-06-28 22:23:51
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] rss_auto_excerpt
hello, on a site I’m working on I’m using the excerpt field as an alternative version of the body text (read: body=first language; excerpt=second language).
since the plugin is able to excerpt from a custom field is there a way to make it excerpt from the excerpt field rather than the body?
thank you
what was that again…?
Offline
Re: [plugin] [ORPHAN] rss_auto_excerpt
@feragnoli: Good idea! Vote +1
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline