We're building a site that uses multiple traits from both Magnolia and external 
systems for showing personalized content to users. There are pages where two or 
more components need to change based on the user's traits and creating page 
variants for all the possible combinations isn't feasible since we'd need 
dozens of them for each page.

Is there some way to access the traits from Freemarker templates or a suitable 
model class? We'd need both the available traits and the ones that match the 
user.

We'd also need to give content editors a way to enter the content for all of 
the possible variations, perhaps with a default fallback in case no traits 
match. What would be a good, intuitive and lightweight way to make this 
possible? I was thinking of creating a custom area inside the component which 
accepts alternative components and uses Freemarker logic to decide which gets 
rendered. Is there some easier or more dynamic way to do this?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=3b679922-fdab-4aa1-b0dc-0e9a36ce8402


----------------------------------------------------------------
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: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to