AnsweredAssumed Answered

getCollection-Method in JS-Templates

Question asked by cfe on Aug 4, 2011
Latest reply on Sep 6, 2011 by bremmington
Hello,

what im trying to do is to load a specifiv collection in the javascript-part of a template (\WEB_INF\webscripts\global\mytemplate.get.js) without passing any arguments vie the page-templates.

From a predefined template i have the following code:

collectionService.getCollection(context.properties.section.id, args.collection)

What can i enter for:
- context.properties.section.id
- args.collection

to get e.g.
\news\collections\section.articles

I tried several combinations without any luck.

Thank you very much in advance for your help!

greetings,
Chris

Outcomes