Plugins & Hacks

How can I let my visitors find my latest Podcast?

Scenario:
"I am using Nucleus for podcasting and I am posting about 6 podcasts per week in the near future. I want my audience to be able to find the freshest podcast with one click when they come on the site. For now I am just going to manually link from the navigation section to the newest podcast posted but I am looking for a way to automate this so I don't have to keep coding by hand everytime I post a new file."

Original forum thread:
http://forum.nucleuscms.org/viewtopic.php?t=6875

Solution:
Use a combination of if statements and templates.

Method:

This method will assume that you are using NP_Podcast to podcast with Nucleus.

  1. Create a new category or blog called "Podcast" and a template with <%Podcast%> in it which displays the full item (let's call it podcast/latest).
  2. Put a link to that blog or category in your navigation.
  3. Set your skin to use the podcast/latest template and to only display one item.

    Using a category:

    <%if(category,catname,Podcast)%>
      <%blog(podcast/latest,1,Podcast)%>
    <%endif%>

    Using another blog:

    <%if(blogsetting,bname,Podcast)%>
      <%blog(podcast/latest,1)%>
    <%endif%>
section: Plugins & Hacks | submitted by Leng on 2005.Apr.30 | 3868 views

item rate
Total votes: 4 - Rating: 5.50

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10