CMS MADE SIMPLE FORGE

CGFeedMaker

 

[#2764] Add eval in the default news & blogs feed template

avatar
Created By: Yury Zaytsev (zaytsev)
Date Submitted: Wed Dec 17 14:18:25 -0500 2008

Assigned To: Robert Campbell (calguy1000)
Version: 1.0.2
CMSMS Version: None
Severity: Minor
Resolution: Won't Fix
State: Closed
Summary:
Add eval in the default news & blogs feed template
Detailed Description:
Users might have tag calls, Smarty logic or whatever in their news articles. For
it to work properly with CGFeedMaker, you need to alter the default template
replacing

{$entry->summary|strip_tags|summarize:40}
{$entry->content|strip_tags|summarize:40}

with

{eval var=$entry->summary|strip_tags|summarize:40}
{eval var=$entry->content|strip_tags|summarize:40}

Same goes for the default blogs feed template.


History

Comments
avatar
Date: 2009-05-18 11:39
Posted By: Tahd McGinnis (jmcgin51)

FYI - this does not work for me (with News, at least).

CMSMS 1.5.3, CGFeedmaker 1.0.4

I replace
{if isset($entry->summary)}
{$entry->summary|strip_tags|summarize:40}{else}
{$entry->content|strip_tags|summarize:40}{/if}

with
{if isset($entry->summary)}
{eval var=$entry->summary|strip_tags|summarize:40}{else}
{eval var=$entry->content|strip_tags|summarize:40}{/if}

and then I get no summary at all in my feed, just the article title.

Thanks!
      
Updates

Updated: 2012-02-27 20:21
resolution_id: 5 => 8
cmsms_version_id: => -1
state: Open => Closed

Updated: 2008-12-17 14:23
summary: Add eval in the default news feed template => Add eval in the default news & blogs feed template
resolution_id: => 5