Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2007-03-08 20:34:41

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

@Tom

  1. Install plugin
  2. Activate plugin (!!!) – After installation of any plugin the active status is ‘no’ – Click once too change that to ‘yes’.
  3. Use tag

That’s all.

Basically you can use the tag everywhere where you normally would use txp:body or txp:excerpt.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#74 2007-03-10 16:59:35

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

Re: [plugin] [ORPHAN] rss_auto_excerpt

slowbox

If you want to use the code expamples from the forum, you should always look at the problem with quotes. Do copy&paste and then delete the quotes and replace it with your system ones. I did the same mistake at the beginning…
Does it help?

dave

Offline

#75 2007-03-18 06:26:25

chosig
New Member
From: Överkalix, Sweden
Registered: 2007-03-18
Posts: 3
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hello.
Noobie call here… Could you wizards post a snippet for me?
On my front page I want it to just have the latest post show in full, and then 4 excerpts generated with this plugin (first paragraph).

I’ve only used txp since yesterday evening, so i’m still getting my grips on pages/sections etc.

Offline

#76 2007-03-18 10:23:41

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

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.
:)


Offline

#77 2007-03-18 19:02:32

chosig
New Member
From: Överkalix, Sweden
Registered: 2007-03-18
Posts: 3
Website

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

#78 2007-03-18 20:39:36

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

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.


Offline

#79 2007-03-18 20:56:39

chosig
New Member
From: Överkalix, Sweden
Registered: 2007-03-18
Posts: 3
Website

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

#80 2007-03-18 22:53:41

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

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 :)


Offline

#81 2007-03-26 22:39:07

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

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

#82 2007-03-28 11:49:01

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

#83 2007-03-28 13:22:46

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

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

#84 2007-04-16 02:17:07

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

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

Board footer

Powered by FluxBB