I'm finding that a lot of RSS feeds have titles that are much longer than the name of the site itself. Sometimes, they include HTML. Thus, I get feed widgets that look like this:
What I'd like to do is have the option of making the widget
description the title if it is provided. From what little I know, I think that means doing some kind of if-else conditional. Thus, in vbcms_widget_rss_page (4.1.7), I'd replace ...
Code:
<div class="cms_widget_header">
<h3><a href="{vb:raw rss_link}" target="_blank">{vb:raw rss_title}</a></h3>
</div>
with something like ...
Code:
<div class="cms_widget_header">
<vb:if condition="(SOMETHING)">
<h3><a href="{vb:raw rss_link}" target="_blank">{vb:(SOMETHING ELSE)}</a></h3>
<vb:else />
<h3><a href="{vb:raw rss_link}" target="_blank">{vb:raw rss_title}</a></h3>
</vb:if>
</div>
Is this correct? What should I substitute for (SOMETHING) and (SOMETHING ELSE)?
Thanks!