sightly

Rendering telephone links in HTL based on input from a Rich Text widget

旧巷老猫 提交于 2019-12-01 03:07:26
问题 I have a component using the Rich Text Edit widget ( xtype="richtext" ) in my project that's used across the entire site as the default text component. The users would like to be able to insert phone links using the tel URI scheme into the text entered using this component. The dialog allows them to do so but when the contents of the Rich Text Edit are rendered in Sightly/HTL later on, the html context is used: {$text @ context='html'} Once this is done, the value of my attribute is ignored.

AEM 6.0: Additional parameters when using data-sly-resource?

家住魔仙堡 提交于 2019-11-29 13:16:32
问题 I am trying to implement something which I hope is relatively straight forward... I have one component (lets call it the wrapper component) which contains another component (lets call it the inner component) inside it via the data-sly-resource tag: <div data-sly-resource="${ 'inner' @ resourceType='/projectname/components/inner' }"></div> I would like to pass in some additional parameters with this tag, specifically a parameter that can be picked up by sightly in the inner component template?