Hi Veena,Sorry for the late reply.I managed to try this with a new model that i created and it worked beautifully. Thank you for finding my problem!!!Regards,Ian
No I wasn't using @Model(adaptables = SlingHttpServletRequest.class), I had @Model(adaptables = Resource.class) instead. that was probably my issue then?
Update:I decided to extend WCMUse instead, this class has access to getCurrentStyle(). I am still interested if anyone has a way to make this work with a sling model though!
Hi,I am trying to access currentStyle properties from within a SlingModel. The SlingModel is being called from a HTL component using data-sly-use that has a functional design_dialog and accessible currentStyle.This was the only suggestion I could find using google:@Inject @Source("script-bindings")...
Hi,Is there a way to check if a page has UNPUBLISHED changes? We have many users who may come into a page and make a change, but sometimes there will already be modifications to the page that have not been published.If this is an out of the box feature I would love to know how to do it!Thanks,Ian
Hi Jorg,The search.html component has a very big index on the /content/sites/global/en/*. I imagine this needs to be broken up into smaller indices. If these JCR Queries are causing lots of load on the system is the memory usage constantly at capacity? Wouldn't we be seeing some level of trends up a...