On 01 Mar 2011, at 20:05, Will Scheidegger wrote:
> 
> If I may post a follow-up question: Grégory said "...if somehow the node 
> you're looking at wasn't wrapped...". In my case the model class does a query 
> and returns a collection of Content objects. I guess these objects should be 
> wrapped before being returned. Can anyone post a few lines of code showing 
> how this is done correctly? All the sample model classes I've examined don't 
> return wrapped content objects but custom beans (e.g. NavigationItem etc.)...

Look at the source of MagnoliaTemplatingUtilities.i18n() (just closed my ide, 
sorry;)) - that and something like Collections2.transform() and you should be 
all set.

hth,

-g




----------------------------------------------------------------
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