ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Adding RSS and Atom to one of my weblogs

March 09, 2008 6:59pm

Subscribe [2]
  • #1 / Mar 09, 2008 6:59pm

    roman-vc

    46 posts

    Hi, as part of my website i am setting up a weblog which should work like the traditional weblogs aka wordpress and stuff. Therefore i need some feeds.
    I couldn’t find any tutorial (which could help me with my very basic knowledge) so i’m asking a few questions back here.
    There are 2 templates in the download section: rss_2 and atom
    Question 1: I think i might have to copy them to the template section of my website. How do i save them? - as “RSS Page” or as “Web Page”?
    Question 2: In the 2 templates there are the first two lines of code where i need to add info. In the blog template (i set up) one of the lines reads: {assign_variable:berlinista_blog="blog"}
    So if i take a look at the RSS template for example it says:
    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed weblog="{master_weblog_name}”}
    Do they have to look like this after i added my info?
    {assign_variable:berlinista_blog="blog"}
    {exp:rss:feed weblog="{berlinista_blog}”}
    Last question - i saved the blog template as web page - think this is correct. Do i need to add any info to the template to get the feed working?
    Sorry for those very basic questions.
    Cheers
    Roman
    Btw. the url of the blog is: http://www.berlinista.com/en/blog - if any one might be interested…

  • #2 / Mar 10, 2008 5:07am

    serafico

    58 posts

    Question 1: I think i might have to copy them to the template section of my website. How do i save them? - as “RSS Page” or as “Web Page”?

    Of course, you can copy these templates to your template section, and, of course, you should save them as “RSS page”. But there is one more option - the same “basic” templates for RSS and Atom feeds you can find in the Template Management section of your EE installation, under “site” template group (this is the “basic” template group you get with the fresh installation). Simply use these “standard” templates.

    Question 2: In the 2 templates there are the first two lines of code where i need to add info. In the blog template (i set up) one of the lines reads: {assign_variable:berlinista_blog="blog"}
    So if i take a look at the RSS template for example it says:
    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed weblog="{master_weblog_name}”}
    Do they have to look like this after i added my info?
    {assign_variable:berlinista_blog="blog"}
    {exp:rss:feed weblog="{berlinista_blog}”}

    Looks OK.

    Last question - i saved the blog template as web page - think this is correct. Do i need to add any info to the template to get the feed working?

    To have your feeds working, you have to include in your “main” template following lines in the head section of the template:

    <link rel=“alternate” type=“application/rss+xml” title=“RSS” href=”{path={my_template_group}/rss_2.0}” />
    <link rel=“alternate” type=“application/atom+xml” title=“Atom” href=”{path={my_template_group}/atom}” />

  • #3 / Mar 10, 2008 5:17am

    roman-vc

    46 posts

    wow! thank you sooooooooooo much!!!
    i’ll give it a try when i’m back home tonight.
    take care
    roman

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases