News module include UDT in content

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
heffer86
Forum Members
Forum Members
Posts: 10
Joined: Sat Nov 22, 2008 3:23 am

News module include UDT in content

Post by heffer86 »

Is it possible to include a user defined tag or global content block in the content of the news module?

When I place a new news article I sometimes want to include content from one of my user defined tags, but if I place the the content is prints out the actual tag EX: {my_tag_name}.  Is there a way to fix this?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News module include UDT in content

Post by Dr.CSS »

User defined tags are more for php type stuff, if you want to include some content type stuff use a GCB...
dhtml12345

Re: News module include UDT in content

Post by dhtml12345 »

heffer86,

I have the same problem.  For some strange reason, CMSMS doesn't seem to execute user-defined tags (UDT) inside the content of a news post.

This is really irritating because I went through the trouble of creating a UDT that uses Lightbox to display images.  A UDT would work perfectly, and mine does on pages, but it doesn't work in news posts, which was my purpose in creating it.

I hope someone out there knows of a fix???  Thanks!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News module include UDT in content

Post by Dr.CSS »

You can use lightbox w/o having to do UDT, give image link tag rel="lightbox" and add the JS to and CSS to template...

Easier, install Lightbox module...
Post Reply

Return to “Developers Discussion”