Changing themes based on date/time
Posted: Wed Jan 09, 2013 5:44 am
Hi!
My company is currently evaluating Broadleaf's suitability for a customer's e-commerce site. One of their requirements is "possibility to change UI's theme on date/time (e.g. different theme during Xmas)". My first guess after a brief glimpse at the documentation is that this could be achieved by either 1) creating different Thymeleaf templates for each theme and selecting the correct one by using a custom BroadleafThymeleafViewResolver or 2) embedding the logic in the main template.
Has anyone implemented similar feature with Broadleaf before? Suggestions on which path (1 or 2) would be better, and why? Are there any other options? Thanks in advance!
BR,
Joni
My company is currently evaluating Broadleaf's suitability for a customer's e-commerce site. One of their requirements is "possibility to change UI's theme on date/time (e.g. different theme during Xmas)". My first guess after a brief glimpse at the documentation is that this could be achieved by either 1) creating different Thymeleaf templates for each theme and selecting the correct one by using a custom BroadleafThymeleafViewResolver or 2) embedding the logic in the main template.
Has anyone implemented similar feature with Broadleaf before? Suggestions on which path (1 or 2) would be better, and why? Are there any other options? Thanks in advance!
BR,
Joni