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.
CGFeedmaker and News module
Re: CGFeedmaker and News module
I guess scopes 'issue'. Read this carefully: https://www.cmscanbesimple.org/blog/sma ... e-examples
Re: CGFeedmaker and News module
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 andvelden wrote:I guess scopes 'issue'. Read this carefully: https://www.cmscanbesimple.org/blog/sma ... e-examples
{News summarytemplate='News_RSS'}
results in in required output.
Re: CGFeedmaker and News module
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.
https://www.cmscanbesimple.org/blog/cre ... t-a-module
Call ONLY the News module in CGFeedmaker template pointing to this template.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: CGFeedmaker and News module
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.
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
That's basically what I ended up doing. News_RSS template contains this foreach part of template.Rolf wrote:Create a News module summary template like describer here
https://www.cmscanbesimple.org/blog/cre ... t-a-module
Call the News module in CGFeedmaker template pointing to this template.
Re: CGFeedmaker and News module
Not in the default template. At least I don't see it.velden wrote: I think the sample template of CGFeedBack show how it should be done nowadays.