cms_selflink tag not working in news module

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
twwitt
Forum Members
Forum Members
Posts: 149
Joined: Thu Aug 28, 2008 7:45 pm
Location: Minneapolis, MN

cms_selflink tag not working in news module

Post by twwitt »

Hi - Using CMSMS 2.13

The cms_selflink tag is working on regular pages but not in the news module.

I see this forum post: viewtopic.php?f=8&t=59503&p=272347&hili ... le#p272347

But I don't understand either of the ways to solve problem:

1) Where does one change the setting for self link in tiny admin?
If not that, then:
2) I'm not exactly sure WHERE in my news detail and summary templates to insert {eval var=$entry->content}

Any help would be appreciated.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: cms_selflink tag not working in news module

Post by velden »

2) I'm not exactly sure WHERE in my news detail and summary templates to insert {eval var=$entry->content}
Wherever you want the specific content (from the News module) being displayed.
twwitt
Forum Members
Forum Members
Posts: 149
Joined: Thu Aug 28, 2008 7:45 pm
Location: Minneapolis, MN

Re: cms_selflink tag not working in news module

Post by twwitt »

velden wrote:
2) I'm not exactly sure WHERE in my news detail and summary templates to insert {eval var=$entry->content}
Wherever you want the specific content (from the News module) being displayed.
So, you mean replace {$entry->content} with {eval var=$entry->content} ? (Sorry I'm not more fluent in Smarty!)

I'm still also confused why an included plug-in like News isn't automatically set up to make the cms_selflink tag work, or am I missing something?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: cms_selflink tag not working in news module

Post by velden »

twwitt wrote: So, you mean replace {$entry->content} with {eval var=$entry->content} ? (Sorry I'm not more fluent in Smarty!)
Yes. Why don't you try and see what happens?
twwitt wrote: I'm still also confused why an included plug-in like News isn't automatically set up to make the cms_selflink tag work, or am I missing something?
Because if someone you don't trust can submit News (e.g. front end submission by website visitors) you might want to consider to NOT evaluate all code they enter. Obviously for security related reasons.

Now you know this use eval at your own discretion.
twwitt
Forum Members
Forum Members
Posts: 149
Joined: Thu Aug 28, 2008 7:45 pm
Location: Minneapolis, MN

Re: cms_selflink tag not working in news module

Post by twwitt »

Thanks, I did try it, and at first I didn't think it made any change, but realized I had to also change
{$entry->summary} to {eval var=$entry->summary}, in addition to the {$entry->content} to {eval var=$entry->content} change.

So that does solve my problem.

Thanks so much for the help!
twwitt
Forum Members
Forum Members
Posts: 149
Joined: Thu Aug 28, 2008 7:45 pm
Location: Minneapolis, MN

Re: cms_selflink tag not working in news module

Post by twwitt »

Want to mark this as SOLVED. I used to be able to click Edit on my first post, but am not able to do so. Is there another way of marking SOLVED that I'm not familiar with?
Post Reply

Return to “The Lounge”