Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-06-04 15:40:40
- newnoise
- Member
- Registered: 2011-02-24
- Posts: 35
Problem with rss_auto_excerpt and aks_rss
Hi,
I’m inserting a RSS-Feed into my blog, which works just fine. I use the aks_rss plugin.
But I dont want to display the whole article, just the first paragraph … so I thought of using the rss_auto_exerpt plugin. Which also works fine, but throws in errors I dont understand.
The code I use is:
p.<txp:php>
$arr = array("paragraphs" => "1", "linktext" => "read more ...", "overrideexcerpt" => "1");
echo rss_auto_excerpt($arr);
</txp:php>
errormessage is:
Tag error: <txp:php> -> Notice: Undefined variable: ID on line 3397
textpattern/publish/taghandlers.php:3344 permlinkurl()
textpattern/lib/txplib_misc.php(653) : eval()’d code:86 permlink()
textpattern/publish/taghandlers.php(3741) : eval()’d code:3 rss_auto_excerpt()
textpattern/publish/taghandlers.php:3741 eval()
textpattern/publish.php:1188 php()
textpattern/publish.php:1113 processTags()
textpattern/lib/txplib_misc.php(653) : eval()’d code:204 parse()
textpattern/publish.php:1188 aks_rss()
textpattern/publish.php:1100 processTags()
textpattern/lib/txplib_misc.php:1706 parse()
Tag error: <txp:php> -> Notice: Undefined variable: Section on line 3403
textpattern/publish/taghandlers.php:3344 permlinkurl()
textpattern/lib/txplib_misc.php(653) : eval()’d code:86 permlink()
textpattern/publish/taghandlers.php(3741) : eval()’d code:3 rss_auto_excerpt()
textpattern/publish/taghandlers.php:3741 eval()
textpattern/publish.php:1188 php()
textpattern/publish.php:1113 processTags()
textpattern/lib/txplib_misc.php(653) : eval()’d code:204 parse()
textpattern/publish.php:1188 aks_rss()
textpattern/publish.php:1100 processTags()
textpattern/lib/txplib_misc.php:1706 parse()
EDIT: Problem solved. Adding parameter “showlinkwithexcerpt” => “0” to the call did the trick!
Thanks
noise
Last edited by newnoise (2012-06-04 16:07:16)
Offline
Re: Problem with rss_auto_excerpt and aks_rss
Can you post the whole block of code which you use in the article form?
Embedding rss_auto_excerpt as you do it looks like a pretty smart trick.
I wonder if performance could be optimized by caching via partial caching? (Can’t remember the plug-in for partial output caching).
(Faster full page caching should work anyway.)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#3 2012-06-05 12:02:54
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Problem with rss_auto_excerpt and aks_rss
merz1 wrote:
Can’t remember the plug-in for partial output caching)
Just encountered it on makss website: aks_cache.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#4 2012-06-06 08:42:50
- newnoise
- Member
- Registered: 2011-02-24
- Posts: 35
Re: Problem with rss_auto_excerpt and aks_rss
merz1 wrote:
Can you post the whole block of code which you use in the article form?
Sure:
<li class="row">
<txp:permlink class="no-decoration"><h4><txp:title /></h4></txp:permlink>
<div class="six columns alpha">
<txp:php>
$arr = array("paragraphs" => "1", "linktext" => "read more ...", "overrideexcerpt" => "1", "showlinkwithexcerpt" => "0");
echo rss_auto_excerpt($arr);
</txp:php>
</div>
<div class="two columns omega" style="text-align: right;"><p><txp:posted format="%d.%m.%Y" /></p></div></li>
Caching might be a good idea, I’ll look into it. Thanks!
Offline