Page 1 of 1
CGFeedmaker and News module
Posted: Fri Jun 30, 2017 1:25 pm
by virgo
I can no longer create feeds from news module with CGFeedMaker. I even reset template to default and changed
{News assign='junk' detailpage=$feed.pageid}
to
{News assign='junk'}
but $items is unassigned after this.
But junk does contain news content.
Re: CGFeedmaker and News module
Posted: Fri Jun 30, 2017 5:29 pm
by velden
Re: CGFeedmaker and News module
Posted: Wed Jul 05, 2017 11:42 am
by virgo
I checked them, but none of the examples seemed to be about variables of module. Anyway, I created another News summary template, that generates RSS items and
{News summarytemplate='News_RSS'}
results in in required output.
Re: CGFeedmaker and News module
Posted: Wed Jul 05, 2017 12:09 pm
by Rolf
Create a News module summary template like describer here
https://www.cmscanbesimple.org/blog/cre ... t-a-module
Call ONLY the News module in CGFeedmaker template pointing to this template.
Re: CGFeedmaker and News module
Posted: Wed Jul 05, 2017 12:10 pm
by velden
It is a scope issue for sure; you cannot use the $items variable from the News template anywhere else than inside the News template itself.
This behavior is in the Smarty version used in CMSMS for a while now.
I think the sample template of CGFeedBack CGFeedMaker show how it should be done nowadays.
Re: CGFeedmaker and News module
Posted: Wed Jul 05, 2017 12:16 pm
by virgo
That's basically what I ended up doing. News_RSS template contains this foreach part of template.
Re: CGFeedmaker and News module
Posted: Wed Jul 05, 2017 12:20 pm
by virgo
velden wrote:
I think the sample template of CGFeedBack show how it should be done nowadays.
Not in the default template. At least I don't see it.