Cyburbia
10-31-2011, 09:41 PM
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:
https://vborg.vbsupport.ru/external/2011/10/1.png
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 ...
<div class="cms_widget_header">
<h3><a href="{vb:raw rss_link}" target="_blank">{vb:raw rss_title}</a></h3>
</div>
with something like ...
<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!
https://vborg.vbsupport.ru/external/2011/10/1.png
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 ...
<div class="cms_widget_header">
<h3><a href="{vb:raw rss_link}" target="_blank">{vb:raw rss_title}</a></h3>
</div>
with something like ...
<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!