New to Serendipity Love it, quick question

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
lj661
Posts: 2
Joined: Sun Oct 14, 2007 3:56 pm
Location: Texas
Contact:

New to Serendipity Love it, quick question

Post by lj661 »

Hi all im a wordpress convert here i love this new platform. Anyway i've got about everything in order only thing i'm trying to do is display rss feeds on a static page is this possible i see how to put one in the sidebar but not the page any help is appreciated.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: New to Serendipity Love it, quick question

Post by garvinhicking »

Hi!

Uh, displaying RSS feeds on a static page is not something that is covered by default in serendipity.

There are a couple of ways to work around that by using custom Smarty functions inside your template files, and/or using a hidden instance of the "remote RSS" sidebar plugin that can be embedded in a static page using a custom smarty function.

If you are prepared for getting your hands dirty, I could instruct you on how to do it. But it won't be a matter of adding 2 lines, you will need to create a new template for your static page and fill that with some "smarty magic".

If you are alright with that, post here, and I'll try to post instructions for that tomorrow.

Regards,
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/
lj661
Posts: 2
Joined: Sun Oct 14, 2007 3:56 pm
Location: Texas
Contact:

thanks

Post by lj661 »

I appreciate the quick response thanks for the help
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: thanks

Post by garvinhicking »

Hi!

Okay, so let's get to it. I've chosen a slightly different route, because it's easier.

- Install the "Remote RSS/OPML-Blogroll Feed" sidebar plugin.

- Configure that plugin to enter the RSS feed you want to display.

- Now move that plugin (via drag+drop) to the "hidden" sidebar in the s9y plugin configuration screen. This is required so that the RSS feed is NOT displayed in the sidebar, since you only want it on a static page.

- Now you need to remember the ID of your RSS plugin. This will be needed later on to make the staticpage show the content of your sidebar plugin. To do so, hover your mouse over the title of your RSS sidebar plugin. You should see a link like:

Code: Select all

/serendipity_admin.php?serendipity[adminModule]=plugins&serendipity[plugin_to_conf]=serendipity_plugin_remoterss%3A6fdf0aa3d632f96a15c09dd230cea20f
The part after "plugin_to_conf" is the ID of your plugin you need to memorize:

Code: Select all

serendipity_plugin_remoterss%3A6fdf0aa3d632f96a15c09dd230cea20f
Replace "%3A" with a ":" so that the plugin ID reads:

Code: Select all

serendipity_plugin_remoterss:6fdf0aa3d632f96a15c09dd230cea20f
The ID will be randomized, so yours will be different.



- Now install the "Smarty markup" event plugin (you can get it via spartacus).

- Create a new staticpage which will hold your RSS feed, by using the "Static pages" event plugin.

- Inside the content area of the page, you use this Smarty code:

Code: Select all

{serendipity_showPlugin id="serendipity_plugin_remoterss:6fdf0aa3d632f96a15c09dd230cea20f" side="hidden"}
- Now save the staticpage and view it. At the place with your smarty function call you should now see the RSS feed.

Regards,
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/
Post Reply