JoomlaWorks

Member Dashboard
  • Home
  • Extensions
    • Commercial
      • Frontpage Slideshow
      • Simple Image Gallery Pro
    • Free
      • K2
      • AllVideos
      • DISQUS Comments for Joomla!
      • Meela
      • Quick Menu
      • Simple Image Gallery
      • Simple RSS Feed Reader
    • Free On Github
      • Fill It Up
      • IAKI (Import As K2 Image)
      • K2 Example Plugin
      • K2 Links for JCE
      • Rebuild K2 Image Cache (CLI utility for K2)
      • URL Normalizer
      • User Extended Fields for K2
  • Demos
    • Joomla Extension Demos
    • WordPress Plugin Demos
  • Labs
    • Joomla 3.x UTD
    • Web Apps
      • JSON 2 JSONP
      • Feed Reader (bookmarklet)
      • Device Info
  • Support
    • Documentation for Joomla Extensions
      • AllVideos
      • Frontpage Slideshow
      • Simple Image Gallery
      • Simple Image Gallery Pro
    • Get Help
      • Community Forum
        • Recent Topics
        • Categories
        • Create free account
      • Help Desk
      • Contact Us
  • About
    • Blog
    • Company
    • License & Terms of Service
    • Privacy Policy
  • My Account
15 11 2010
Written by  JoomlaWorks
Published in Blog
Tagged under
  • +atom
  • +feed
  • +feedburner
  • +how-to
  • +rss
1 comment

Elegant way to pass on your primary Joomla RSS feed to Feedburner

Elegant way to pass on your primary Joomla RSS feed to Feedburner

We all know Feedburner. The cool service offered by Google that makes distributing your RSS feed a lot better with analytics, various RSS feed reader support and so on...

If you wanna use Feedburner, you just sign up for the service with your Google account on http://feedburner.google.com and then provide your "home page" RSS feed (usually something like mywebsite.com/?format=feed). Feedburner will in turn give you back a new RSS feed link (something like feeds.feedburner.com/mywebsite) which you can use to "proxy" people who read your feeds via Feedburner and enjoy all the goodies the service can offer.


Now, the dead simple way to add your RSS feed link on your Joomla site is:

a) add the related <link ... /> code on your template's <head>...</head> tags

b) use mod_custom (or some other similar extension from the Joomla Extensions Directory) to add a direct link to your Feedburner RSS feed link or a nice button to do the same thing (see for example http://brian.teeman.net - "Follow me" button on the right column)

Obviously the second option is highly recommended as users who don't notice that orange or blue icon in the URL bar of their browser, can easily subscribe to your Joomla site's RSS feed.

But if you go with the first option too, you will end up with 3 RSS feed links listed in your <head> tag, that may confuse your visitors. The first feed will be your Feedburner one and the other 2 the feeds that are automatically generated by Joomla for the two available feed formats (RSS and Atom)... These 3 feed options will show up when your visitors click the orange button (e.g. in Firefox) or the blue button (e.g. on IE or Safari) in the URL bar of their browser. See the screenshot below:

Feed_buttons_on_url_bar

So here's a neat trick to further control the feed link that shows up in these feed buttons on your visitors' browsers... Let's suppose you want to server the Feedburner feed link only on the "home page" of your Joomla site. First of all, we need a way to determine the visitor is ON the "frontpage" (or "home page", call it what you like...).

Open up the index.php file of your Joomla template and right below the "defined( '_JEXEC' ) or die( 'Restricted access' );" line, add the following snippet:

$document = &JFactory::getDocument(); // Determine if we are on the frontpage $menu = &JSite::getMenu(); if($menu->getActive() == $menu->getDefault()) $isFrontpage = true; else $isFrontpage = false; // Cleanup Joomla default feed links only for the frontpage if($isFrontpage) unset($document->_links);

This code snippet will "turn off" the feed links created by Joomla (automatically) on the frontpage of your site. But only for the frontpage of your site.

You can then go on and add your usual Feedburner feed link right before the "<jdoc:include type="head" />" snippet within your <head> tag. So you end up with something like:

<link href="http://feeds.feedburner.com/myfeed" rel="alternate" type="application/rss+xml" title="My site feed" /> <jdoc:include type="head" />

Now when a visitor on your site requests for any other page (than the frontend), will get 3 feed links, your primary (which comes from Feedburner) and the 2 auto-generated by Joomla.

The applications of this are limitless obviously. You can either completely disable all auto-generated Joomla feed links and pass on one common feed link on all pages, or create different Feedburner feed links and set them individually on your Joomla pages based on specific criteria (e.g. for the "major areas" in your site).

You can see how implemented this trick on sites like www.gazzetta.gr (fixed Feedburner links plus Joomla feed links), brian.teeman.net (Feedburner link only), magazine.joomla.org (Feedburner link on frontpage only).

Read 133271 times

1 comment

  • Chris Hoch Chris Hoch 08 Jul 2011
    Comment Link



Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.

back to top
BY MAIL BY RSS

Archives

  • November 2026 (3)
  • October 2026 (3)
  • July 2026 (1)
  • April 2026 (1)
  • May 2024 (1)
  • March 2023 (1)
  • January 2022 (1)
  • July 2021 (2)
  • May 2021 (1)
  • February 2021 (1)
  • December 2020 (1)
  • September 2020 (1)

Tag Cloud

allvideos announcement apache community cpanel frontpage slideshow future j3x-utd joomla k2 Performance plugin release sh404sef simple image gallery simple image gallery pro simple rss feed reader socialconnect update video

Latest Entries

  • Simple Image Gallery Pro v4.0 is now available! New super-modal, modern CSS/JS everywhere, new layouts & more!
    Written by  JoomlaWorks
    13 Nov 2026
  • Joomla 3.x UTD v3.18 released: refinements, stability & continued evolution
    Written by  JoomlaWorks
    08 Nov 2026
  • Sunsetting all our Joomla templates
    Written by  JoomlaWorks
    08 Nov 2026
  • Security notice: emails impersonating the K2 developer
    Written by  JoomlaWorks
    15 Oct 2026
  • Joomla 3.x UTD v3.17 now available - a milestone release for this project!
    Written by  JoomlaWorks
    10 Oct 2026

About Joomlaworks

JoomlaWorks is developing and supporting some of the most respected and popular extensions in the Joomla community, including the groundbreaking K2, AllVideos, Simple Image Gallery (Free & Pro), Frontpage Slideshow, Simple RSS Feed Reader and many more.

Since 2006 we have developed & released more than 40 extensions for the Joomla CMS, all of which have been used in hundreds of thousands of Joomla websites across the world.

Our extensions have been downloaded more than 12 million times, with our flagship extension K2 surpassing 5 million downloads!

Follow Us Social

  • X / Twitter
  • Facebook
  • GitHub
  • GitHub (K2)
  • YouTube

Read Our Feeds

  • Extension Updates
  • Blog
  • Videos
Copyright © 2006 - 2026 JoomlaWorks Ltd.
JoomlaWorks Ltd. and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
designed by Nuevvo