Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Can I check to see if a publish rule has something published for it?

 

 


jeremed
User

Nov 24, 2006, 7:57 AM

Post #1 of 2 (609 views)
Shortcut
Can I check to see if a publish rule has something published for it? Can't Post

I am publishing rss feeds, but not for all categories. In my template, is there a direct way to check the publish rule settings to see if that category should include a link to the rss feed?

If I just use $published.rss.url$, it makes an error on pages that have no feed.

I will create a checkbox to use for each category if necessary, but I want to make sure there's not a more direct way before I do that.


Damon
Staff / Moderator


Nov 25, 2006, 11:46 AM

Post #2 of 2 (594 views)
Shortcut
Re: [jeremed] Can I check to see if a publish rule has something published for it? [In reply to] Can't Post

Hi,

Creating a category checkbox to select the option to publish the category RSS feed link is the way to go. There isn't a way via the templates to check the publish rule settings for this.

After you create a category checkbox, add a templateif statement to your categoryIndex.html template.

For example, if you create a category checkbox with the placeholder name "addRsslink", here would be the example code to add to your template:

<!-- templateIf : $category.addRsslink$ eq "Yes" -->
<br>
<span class="webfeed"><a href="$published.rss.url$">
<img src="$_weburl$images/webfeed.gif" width="16" height="16" border="0" align="right"></a>
<a href="$published.rss.url$">$category.name$ Feed</a>
</span>
<!-- /templateIf -->


I hope that helps. I you need any more details just let us know.

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/