Page 1 of 1

News Module Reference from User Defined Tag

Posted: Thu Mar 31, 2011 7:07 pm
by wfunderberg
All,

I am trying to reference the News Module from a User Defined Tag so that I can get a count of active articles from a particular category to determine if I should display a predefined message.

I have searched through countless post but non have really shown this method that I am trying to achieve.

Is it possible to do this and if so any inspirational code would be most helpful!

Thanks!
Wes

Re: News Module Reference from User Defined Tag

Posted: Thu Mar 31, 2011 8:26 pm
by Wishbone
Instead of a UDT, why don't you create a summary template for this.. There might be a smarty variable that has the count.. if it doesn't you can just count it. ;) The summary template won't output anything, (unless you want it to)

Re: News Module Reference from User Defined Tag

Posted: Fri Apr 01, 2011 12:31 pm
by wfunderberg
Thank you for the suggestion and I will try that to see if it will do what I want it to.

Re: News Module Reference from User Defined Tag

Posted: Fri Apr 01, 2011 8:52 pm
by wfunderberg
Thank you Wishbone, that did the trick and was quite easy to implement.