You are not logged in.
I cant work this out!!!
I have set my <em>kgr_safe_excerpt</em> to show only the first 20 words when in an article list. (incidentally column on my pages). You can see the problem with a gap below my headline on the first article.
For some reason on the first article (and only the first article) it ADDS extra <p> tags?
I tried Vagari code above but it doesnt seem to do anything?
Cheers
Last edited by Martagnan (2004-11-17 12:14:09)
Offline
Martagnan:
I’m stumped. I have to admit that I really can’t see any reason for the extra <code><p></code> tags.
-Kurt
Last edited by KurtRaschke (2004-11-17 21:39:57)
kurt@kurtraschke.com
Offline
That’s odd Martagnan, it looks like the problem is in the form (from all the extra whitespace) but I don’t understand why it’d only be in the first list item. I don’t know if it’ll help but I’ll include my form.
<code>
<div class=”<txp:author_id />Box”>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p><txp:kgr_safe_excerpt linktext=“…” words=“35” /></p>
<txp:posted /> – by <txp:author /> – <txp:comments_invite /></div>
</code>
Good luck, let us know if you figure it out. :)
Oh yeah, and I like the design on your site.
Last edited by vagari (2004-11-18 03:41:42)
Offline
If there is more article to view and the ‘Read More’ link is required, all tags are stripped out, including the <p> tags.
If there are no more words than the excerpt the <p> tags are kept and it displays fine.
Can we stop it from stripping the <p> tags?
Offline
> Martagnan wrote:
> Ok… finally I worked out that vagari’s hack above fixes my problem – thanks vagari! Can this ‘hack’ be implimented into main plugin someway?
Well, I have been travelling the past few days, and I have also been very busy with schoolwork recently, but I’ll try to get an updated plugin released soon.
-Kurt
kurt@kurtraschke.com
Offline
hi, i’m using this plugin quite happily…
wondering though whether there’s a way or an attribute that could be added to opt NOT to use the whole excerpt if there is one….
that is, if i want only the first 20 words of the article to show, kgr_safe_excerpt does that beautifully — until it comes across an article that has a manually-created excerpt.. then kgr_safe_excerpt prints the whole excerpt instead of the first 20 words… if i really just want 20 words to show..whether it’s 20 words of the article or 20 words of the excerpt.. how can i accomplish this?
textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki
Offline
Not working for me on the latest versions of Textpattern strangely enough…
Anyone have a fix? I’ve narrowed the problem down to the implode/explode functions area.
Maybe its just my server? www.winatpoker.com/page.php
Offline