UDT and other tags not working in News

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
urbini
Forum Members
Forum Members
Posts: 31
Joined: Sun Dec 16, 2012 11:41 pm

UDT and other tags not working in News

Post by urbini »

Hi.
I have CMSMS 2.1.2 and:
AdminSearch 1.0
CMSContentManager 1.1
DesignManager 1.1.1
FileManager 1.5.2
Gallery 2.1.3
MicroTiny 2.0.3
ModuleManager 2.0.2
Navigator 1.0.2
News 2.50.4

The problem: I need to insert galleries in news articles, I've tried both in news summary and content through microtiny, but the {Gallery} tag is outputted as text. The same happens with every other tag.
Differently, everything works fine in pages (Content Manager).
Can you help me?

Thanks
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: UDT and other tags not working in News

Post by velden »

Check the Smarty tag {eval}. Though take care if you're not sure you can trust the input (if you allow visitors to submit News articles).
urbini
Forum Members
Forum Members
Posts: 31
Joined: Sun Dec 16, 2012 11:41 pm

Re: UDT and other tags not working in News

Post by urbini »

Ok, in the news detail template I've put {eval var=$entry->content} instead of {$entry->content} and it works.
So there are no problem to use eval in news? It was removed with version 1.12 only for security in case visitors are allowed to submit News articles? This is not my case, so it's not dangerous, is it?
Thanks


P.S. How do I add [Solved] to the subject of the post?
Post Reply

Return to “The Lounge”