Hi fellow Magnolians,

I'm kind of lost in the APIs and taglibs. What I basically would like to do
is to change STKs latest news teaser to go through all news paragraphs
(which I developed) from a certain page, instead of fining all "stkNews"
pages. I've created a news paragraph myself, which builds on stkNewsHeader.

I know how to find my page using STKUtil:

List items = 
STKUtil.getContentListByTemplateCategorySubCategory(getSearchRoot(),
"section", "news");

That seems to work, at least I get a Content object showing the correct
path.

I then would like to find all paragraphs on that page, which were created
using the "newsHeader" paragraph template. I've tried several ways, but
nothing seems to work. I've also tried STKUtil.getContentListByTemplateName,
but I'm probably doing something wrong with the Content object I get back by
these methods?

How do I go about this?

Thanks for your help
Andreas


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to