Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#193 2010-04-03 00:27:42

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 605
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

eivl wrote:

any ideas?

Maybe it’s because of some HTML code in the article.
So you better use it with striptags="1" and maybe also stripbreakstabs="1"
You can read about these attributes in the plugin help page.

Offline

#194 2010-04-08 20:04:59

eivl
Member
Registered: 2009-04-09
Posts: 20

Re: [plugin] [ORPHAN] rss_auto_excerpt

Thanks, i will read up on that, but now i know when it happens, it is when i use smd_gallery, will post if your idea works!

Offline

#195 2010-07-26 22:49:26

kritoke
Member
From: Florida
Registered: 2010-07-19
Posts: 26

Re: [plugin] [ORPHAN] rss_auto_excerpt

For your information, if you have a set of code that is right after whichever paragraph you set to cut off at, it may break the rest of the code from outputting in this. I have a divider image that I put immediately between the paragraphs and it caused the rest of the page after this divider to not output, once I put a space between it and the paragraph it resolved it. The code in question was <div class="divider"><txp:image id="1" /></div>, I had tried the striptags and stripbreakstabs, but that caused strange layout results. I am satisfied with putting an extra space, since I only use that kind of thing on one individual page, but I thought I would post this just in case anyone else had the same kind of problem.

Offline

#196 2010-10-08 14:19:29

Alweb
Member
Registered: 2010-10-08
Posts: 25

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hello everyone,

I have the next problem with the next code:

<a href="#" class="linkblok">
<div class="linkblok_title">Title</div>
<p>Intro text</p>
<div class="leesverder">+ Read more</div><br class="trek" />
</a>

I am using this textpattern code:

<txp:article limit="5"> 
<a href="<txp:permlink />/" class="linkblok">
<div class="linkblok_title"><txp:title/></div>
<txp:rss_auto_excerpt words="15" />
<div class="leesverder">+ Read more</div><br class="trek" />
</a>
</txp:article>

This is what I get in my source code:

<a href="http://www.domain.com/section/title/" class="linkblok">
</a><div class="linkblok_title"><a href="http://www.domain.com/section/title/" class="linkblok">Title</a></div>
<p><a href="http://www.domain.com/section/title/" class="linkblok">Intro text</a></p>
<div class="leesverder">+ Read more</div><br class="trek">

When i use <txp:rss_auto_excerpt words="15" />
it gives to everything a link, but the title, intro text and read more do not need a link. By this way my layout comes in trouble.

When I remove <txp:rss_auto_excerpt words="15" />, everything is ok, but then I don’t have the intro text.

I hope someone can help me how to get the intro text there! :)
Grtz

(added some bc.’s and @’s for better code display. -Els)

Last edited by els (2010-10-08 15:40:12)

Offline

#197 2010-10-08 21:25:04

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Try adding showlinkwithexcerpt="0" to the plugin tag.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#198 2010-10-08 21:54:28

Alweb
Member
Registered: 2010-10-08
Posts: 25

Re: [plugin] [ORPHAN] rss_auto_excerpt

thebombsite you are fantastic! ;-) tnx!

Offline

#199 2011-01-07 02:25:57

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Help (please). I’m wondering if this plug-in is what I’m looking for, but here goes…

I’d like to list excerpts only of all of my events on a page (not Home). Then, when a particular event is clicked, it goes to the full article. Currently, I’m using the section page as that overall list (www.website.com/events) but when I get the list to work as only excerpts, it carries that command over to the full article page. That said, is rrss_auto_excerpt the plugin that I need, or is it simply an article tag I need to use?

Thanks much!


Living the Location-Independent Life: www.NuNomad.com

Offline

#200 2011-01-07 02:45:39

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

There are lots of ways to designate different output on a section landing page and an individual article. Here’s one way:

<txp:article>
	<txp:if_article_list>
		<!-- excerpt tag -->
		<txp:else/>
		<!-- individual article tags -->
	</txp:if_article_list>
</txp:article>

Here’s another:

<txp:article>
	<txp:if_individual_article>
		<!-- individual article tags -->
		<txp:else/>
		<!-- excerpt tag -->
	</txp:if_individual_article>
</txp:article>

Another way is to designate a listform for the excerpt tag you want on the landing page, and a form for the individual article output.

Edit: Fix code formatting.

Last edited by johnstephens (2011-01-07 02:46:17)

Offline

#201 2011-01-07 08:04:30

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Yes, that totally worked. Here is what my form looks like:

<txp:article status=“sticky” form=“static_text” limit=“1” />

<txp:article> <txp:if_article_list>

<h3><txp:permlink><txp:title /></txp:permlink></h3> <p><txp:posted format=”%m-%d-%Y” /></p>

<txp:excerpt /><p><a href=”<txp:permlink />” title=”<txp:title />”> Read More </a></p> <txp:else/>
<h2 class=“entry-title”><a href=”<txp:permlink />”><txp:title /></a></h2>

<txp:body /> </txp:if_article_list>
</txp:article>


Living the Location-Independent Life: www.NuNomad.com

Offline

#202 2011-01-07 10:44:38

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

Re: [plugin] [ORPHAN] rss_auto_excerpt

rss_auto_excerpt creates excerpts auomatically. Standard use is stand alone or inside an if_excerpt tag. if_excerpt answers ‘No’, well, rss_auto_excerpt can create an excerpt.

If you have excerpts and you want to show the full excerpt then rss_auto_excerpt is not needed.

but when I get the list to work as only excerpts, it carries that command over to the full article page.

Check your if/else logic. Somewhere along the way a <txp:body /> is missing :)

Edit: Laptophobo, pls. don’t start a txp:article if/else discussion here in this rss_auto_excerpt specific thread.

Last edited by merz1 (2011-01-07 10:51:33)


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

Offline

#203 2011-01-07 10:58:52

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Hi Markus. Yup, that’s what I didn’t do. Hadn’t added the body tag. But, it seems okay now. I’ll also look into the plug-in option as well.

Thanks for helping!


Living the Location-Independent Life: www.NuNomad.com

Offline

#204 2011-01-11 21:52:49

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Is there a way to override the auto-excerption if the full body is only x words/whatever longer than it? There must be… seems silly to excerpt the first 100 words if the entire article is only 102, for example.
Thanks,
hicks.

Offline

Board footer

Powered by FluxBB