Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2007-07-12 23:47:46

atbradley
Plugin Author
From: Rhode Island, US
Registered: 2007-02-15
Posts: 34
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

I’m having (I think) the same problem jusisan was having earlier:

This line:

<txp:rss_auto_excerpt skipparagraphs="1" paragraphs="9999" />

ought to skip the first paragraph and output the rest of the article, but it actually outputs the entire article. setting paragraphs to the number of paragraphs in the post gives me what I expect, (e.g. the post has six paragraphs, so:

<txp:rss_auto_excerpt skipparagraphs="1" paragraphs="6" />

But that isn’t very convenient (not all of my posts have six paragraphs).

Update: I think I’ve fixed this. Replace this line:

$doex = ($paragraphs) ? ($paragraphs < $pghcount) ? 1 : 0 : $doex;

with this:

$doex = ($paragraphs) ? ($paragraphs < $pghcount) ? 1 : $skipparagraphs : $doex;

Doing this may break something else, but it seems to be working as far as I can tell.

Last edited by atbradley (2007-07-13 00:17:31)

Offline

#92 2007-07-16 09:16:52

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Love your plugin but I’m missing a “newlines to spaces” features.

If you have newlines in the text that you want to make an excerpt off the newlines are correctly killed by the excerpt looks weird.

Something like this:
“blablabla.blabla”

I would be nice if I could specify that newlines should be converted into space so that I got:
“blablabla. blabla”

Any chance for a new version with this option?

Offline

#93 2007-08-01 16:51:00

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Re: [plugin] [ORPHAN] rss_auto_excerpt

wilshire wrote:

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.

Thanks for a great plugin. It looks like this hasn’t been done yet, is that right? I’d love to have my auto excerpt wrapped in a p tag, followed by the read more link wrapped in a p tag.

Offline

#94 2007-09-05 12:51:08

jonnott
New Member
Registered: 2007-06-04
Posts: 2

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hi,

I don’t currently have textpattern installed myself, but I’d quite like a look at the source code of this plugin.

If you have this plugin installed, could you drop me the source in an email.

It’s

jonnott
gmail
com

Thanks.

Offline

#95 2007-09-28 07:45:10

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

How can i manually turn off the automatic generation of the read more link?

Occasionally I want to manually link to something else other than a full blown article, (i.e a category or different article). That’s easy.

Problem is that the read more link is still generated. How can I manually overide (at the article level) the automatic generation of the readmore link. Is there a custom field i could use perhaps?
I tried a work-around by using the showlinkwithbody="0" attribute, so that the link is not generated when the excerpt is less that 400 letters but it still output the readmore only this time outside the excerpt <p> ?

<txp:rss_auto_excerpt length="400" linkwraptag=""  
wrapreadmore=“1” linkclass=“morelink” showlinkwithbody=“0”  
ending="... " linktext="Lees meer" />

Another solution would be if you could manually set the url for the “read more” link

Any ideas how i can solve this?

______________________________________________

ANSWER
With Gocom’s help I was able to find a solution that works great for me.

It’s at this thread Overiding Article output at Article level

Last edited by Timid&friendly (2007-10-05 12:02:44)


I think, therefore I AM, … … er … I think :-?

Offline

#96 2007-10-02 20:35:31

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hi,

Thanks to Rob first of all for puttung this code together.

I found a bug, where the plugin will strip off the closing bracket of a textile inserted break tag, on text strings with brackets(), if found and with Textile turned on.

Here is the test string in question for the article body:

The intent of this article, is to explain each category term with a short explanation.
(This is the article body)
These articles, are stored into the topics section for now.
(This is a child category) child

And this the output:

	<p>The intent of this article, is to explain each category term with a short explanation.<br />
(This is the article body)<br...</p>

with plugin set to words.

On a first look, this seems to happen if brackets are found.

regards, marios

Last edited by marios (2007-10-02 20:38:02)


⌃ ⇧ < ⌃ ⇧ >

Offline

#97 2007-10-05 08:43:57

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Great plugin. Many thx

I occasionally don’t need an auto excerpt generated as I write it manually in the excerpt field. Great!

The problem
When i do this a “readmore” link is generated that doesn’t adhere to the specified rss_auto_excerpt settings
<txp:rss_auto_excerpt length="400" wrapreadmore="1" linkwraptag="" linkclass="morelink" ending="... " linktext="Read more" />

Despite the (wrapreadmore=“1”) attribute the link is still not wrapped in the last closing tag of the excerpt

Real example
http://meanttoshine.org/weblog/categories/?c=Nieuws

My failure :-(
It seems that either the rss_auto_excerpt is not working or the styling for the manual excerpt field is set elsewhere.

Can anyone point me in the right direction?

EDIT
I noticed that the endings is also failing when this occurs

Last edited by Timid&friendly (2007-10-20 08:04:47)


I think, therefore I AM, … … er … I think :-?

Offline

#98 2007-11-10 23:39:04

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

I tried to see if this was posted before, but I’m having a small problem with this plug-in.

This plugin doesn’t process txp tags. I have articles with < txp:upm_image …. / > (minus the excess spaces) and in the HTML source, it just shows the txp tag without parsing it.

Is this an option with this plugin.

I hope this made sense.

Thanks,
Shige

Offline

#99 2007-11-11 16:03:29

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

Re: [plugin] [ORPHAN] rss_auto_excerpt

It is not allowed in standard TXP to nest tags into each other. Check the asy_wondertag plugin in this forum.


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

Offline

#100 2007-11-11 16:14:38

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Nesting tags can cause parsing errors, but in this case the excerpt isn’t parsed, which is a different problem. To fix it, the plugin would have to parse first and then generate the excerpt (doing it the other way around is… non-trivial).

Offline

#101 2007-11-22 17:52:34

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

I’m sorry if this has been posted before I’m in a rush.

I have both body and excerpt inside article. I need auto excerpt with word length, but all I get is default full excerpt ( is there a way to cut words from default excerpt?).

Thanks

Last edited by fuls (2007-11-22 18:04:44)

Offline

#102 2008-02-01 11:52:52

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

fuls wrote:

I have both body and excerpt inside article. I need auto excerpt with word length, but all I get is default full excerpt ( is there a way to cut words from default excerpt?).

Use overrideexcerpt="1"


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#103 2008-02-14 20:42:27

makason
Member
From: Hilo, Hawaii
Registered: 2005-01-23
Posts: 34
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Did anybody find a workaround to use rss_auto_excerpt for meta description when articles contain <txp:image /> tags in the beginning of the body?

Sorry, please disgard the above. New version of plugin works perfect. Thanks Rob

<code>
<meta name=“description” content=”<txp:rss_auto_excerpt words=“30” overrideexcerpt=“1” striptags=“1” showlinkwithexcerpt=“0” stripbreakstabs=“1” excerptwraptag=”“ ending=”…” />” />
</code>

Last edited by makason (2008-02-14 21:23:13)

Offline

#104 2008-03-29 12:57:10

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,197
Website GitHub

Re: [plugin] [ORPHAN] rss_auto_excerpt

feragnoli wrote:

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

If you want striptags="1" to also strip tags from real excerpts, add the line marked below to the plug-in code just after the if there’s a real excerpt use it bit (around line 34):

// if the article has an excerpt, show it
		if ($excerpt != '' && !$overrideexcerpt) {
// add this line here:
			$excerpt = ($striptags) ? strip_tags($excerpt) : $excerpt;

This way your authors don’t need to remember to add a space or to switch off textile for the excerpts.


TXP Builders – finely-crafted code, design and txp

Offline

#105 2008-04-29 06:15:23

slaizer
New Member
Registered: 2008-04-29
Posts: 1

Re: [plugin] [ORPHAN] rss_auto_excerpt

Any pro’s here? I need help. I can’t get the darned thing to work. :/

I’ve tried to do it for a good three hours now, and I’m just about ready to give up. :( The problem is, each article needs a picture, an embedded flash music player and a paragraph of text to show on the main page (as a preview), with a “read more” link to the real page, which has the same picture and same player but the full article.

No matter what I try, it either cuts off the text, duplicates the player or does nothing.

How in the hell do I do this?

Last edited by slaizer (2008-04-29 06:16:05)

Offline

Board footer

Powered by FluxBB