Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#133 2008-08-26 16:11:53
- Kuo
- Member
- Registered: 2008-03-14
- Posts: 44
Re: [plugin] [ORPHAN] rss_auto_excerpt
Well, i found the problem. The plugin txp:the_video is incompatible with the plugin txp:rss_auto_excerpt. I had put it on the top of my last article…
Offline
#134 2008-08-28 18:16:05
- Leonick
- Member
- Registered: 2007-07-30
- Posts: 16
Re: [plugin] [ORPHAN] rss_auto_excerpt
I have a problem with rss_auto when a HTML img tag is in N first characters of the body text, the img tag is truncated
I call it by
<txp:rss_auto_excerpt length="300" skipparagraphs="1" />
and the result in my page is
<a href="/big/img_uri.jpg"><img src="/small/img_uri.jpg" alt="my image" width="194"...</a>
Offline
#135 2008-08-28 21:38:53
Re: [plugin] [ORPHAN] rss_auto_excerpt
That looks like a bug in the auto tag closing routine. The a is closed properly but the img is overseen/ignored.
Bad news is that Rob Sable is not showing up here and also is not reacting on emails for a long time now.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#136 2008-10-01 19:41:25
Re: [plugin] [ORPHAN] rss_auto_excerpt
I’ve read througt the first five pages but I can’t find a solution to style the excerpt properly. Why isn’t it possible to assign a class to the excerpt?
Something like this would be perfect:
<txp:rss_auto_excerpt class="css-class" />
Offline
#137 2008-10-01 20:04:07
Re: [plugin] [ORPHAN] rss_auto_excerpt
How about this?
<wraptag class="css-class"><txp:rss_auto_excerpt /></wraptag>
Offline
#138 2008-10-01 20:15:27
Re: [plugin] [ORPHAN] rss_auto_excerpt
Of course I could write <div class="name"><txp:rss_auto_excerpt /></div>
but that’s not a good solution…
I want something like this as output:
<p class="excerpt">This is the excerpt <a href="#">Read more</a></p>
Last edited by Viktor (2008-10-01 20:17:02)
Offline
#139 2008-10-01 20:41:04
Re: [plugin] [ORPHAN] rss_auto_excerpt
I see. Without striptags="1"
, the generated excert wraps a p
element. You could do this:
<p class="excerpt"><txp:rss_auto_excerpt striptags="1" /></p>
…but then you lose any Textile/XHTML formatting within the excerpt.
Your best option is probably to target it in the page heirarchy. For example:
XHTML
<h3><txp:title /></h3>
<txp:rss_auto_excerpt />
CSS
h3 + p {
unique-style-declaration: ect;
}
If your article form appears in a specific div or other id
ed element, you can use that to further specify your css:
#article-list h3 +p {
If you make use of all the available selectors, you need class attributes less and less. I hope this helps!
Offline
#140 2008-10-01 20:44:29
Re: [plugin] [ORPHAN] rss_auto_excerpt
I noticed you can also use the excerptwraptag
attribute in rss_auto_excerpt
to generate a unique wraptag that can target with css.
Offline
#141 2008-10-02 12:05:41
Re: [plugin] [ORPHAN] rss_auto_excerpt
thank you, John. I solved my problem with your solution. I didn’t think of this way ;)
Offline
#142 2008-10-03 06:00:29
Re: [plugin] [ORPHAN] rss_auto_excerpt
You’re welcome. I’m glad you got it working!
Offline
#143 2008-11-17 19:03:44
Re: [plugin] [ORPHAN] rss_auto_excerpt
Sorry if this has previously been answered, but I couldn’t see it mentioned. I am trying to use this plugin to generate single paragraph excerpts and only want a ‘Read more’ link when the excerpt is shorter than the full text. However, I get the link whatever the length of the article. I am calling the plugin as follows:-
<txp:rss_auto_excerpt paragraphs="1" linktext="Read more" linkclass="readmore" />
Any fix for this would be much appreciated as it is a little annoying implying to visitors that there is more text to follow when there’s none.
Offline
#144 2008-12-04 19:56:46
Re: [plugin] [ORPHAN] rss_auto_excerpt
I am having problem with this plugin after upgrading to 4.0.7.
I am using
<txp:rss_auto_excerpt paragraphs="1" linktext="Lasīt tālāk" linkclass="morelink" />
and whenever I have an <txp:image id="xx" />
in my article body, page code is cut after returning content of plugin.
Offline