Default value in Reference component

Avatar

Avatar

varuns46785756

Avatar

varuns46785756

varuns46785756

18-07-2019

Hi All,

I am using the reference component in AEM6.4. I have added the reference component in my header.html file. Whenever first time I am going to open the header.html page it will open the page with this component and I need to author the reference path in it, can I add default path in this component, so whenever author will open the page first time, then component will populate with default values in the path section. I have tried with "value" and defaultValue" property on node level but nothing is working. Please suggest.

<div class="contain">

<sly data-sly-resource="${'prelogin' @ resourceType='/apps/project/components/content/reference'}"></sly>

</div>

Regards,

View Entire Topic

Avatar

Avatar

varuns46785756

Avatar

varuns46785756

varuns46785756

23-07-2019

HI Arun,

yes, you are correct its working only for new pages for existing pages its not able to find out the node, getting 500 error.

How can I add check here, do I need to add at page component level?

Regards,