Import RSS news to the blog

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: RSS feeds not shown on index. HOW?

Post by garvinhicking »

Hi!

You can auto-insert this property by patching the aggregator plugin. Edit the method 'insertProperties'.

Add this line to the repeating block of inserts:

Code: Select all

            $sql = "INSERT INTO {$serendipity['dbPrefix']}entryproperties
                                (entryid, property, value)
                         VALUES ('$entryid', 'ep_no_frontpage', 'true')";
            serendipity_db_query($sql);
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Rik
Posts: 2
Joined: Fri Jun 16, 2006 2:11 am
Contact:

Post by Rik »

Thanks!

it's working
Post Reply