Hello Jin,

The parameters are set on the paragraph definitions and then accessed by 
init.inc.ftl. With Blossom the paragraph definitions are created at startup and 
do simple bridging to your spring controllers. At this moment there is no 
support for providing parameters this way. I would suggest that you copy 
init.inc.ftl and change it to take these values from the model instead. You 
then put these values in the model when your controller executes. You would use 
this new file only with your blossom based teasers.


Regards,

Tobias Mattsson
Senior Software Engineer
Magnolia International Ltd.



On Dec 12, 2011, at 11:57 AM, Magnolia Forums (on behalf of Jin Voon) wrote:

> Hi,
> 
> I am developing a new paragraph using Blossom, this has been fine.  However, 
> I want to use this new paragraph in the teaser area (alongside other 
> teasers).  Now my problem is that in STK, when you add a teaser, it will 
> automatically work out the teaser div id and CSS class e.g. <div 
> id="teaser-1" class="teaser mod">.
> 
> Now I've digged deeper and found that this is worked out by 
> /templating-kit/paragraphs/teasers/init.inc.ftl, which in turn refers to 
> several parameters specific to that teaser paragraph e.g. divIDPrefix, 
> headingLevel, divClass etc.
> 
> My question is how do I add these parameters automatically using Blossom?  Or 
> am I completely missing the point about developing a new teaser for STK?
> 
> Thanks in advance.
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=67a58293-2e2c-4f7d-b2ef-2983b64eae38
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



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

Reply via email to