We have arequirement to add custom flags to pages created using a particular editable template ,using static template we could do this by adding the property under template/ jc:content .Please let me how to achieve the same using editable templates.
Solved! Go to Solution.
Views
Replies
Total Likes
@krishker There is no format such that, it takes the name attribute of your custom property.
For Eg:
you have a text field with ./sampleProperty
Navigate to initial content of your template node and save that custom property with the value you want to come as part of page creation with this template
Now when you create a page using this template you can see that value you have given in the page properties.
Hope this helps,
Krishna
Did you take a look at the Section "Initial Content" at https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/templates/page-tem... ?
@krishker you can add properties to initial/jcr:content node if you want any properties that needs to come as part of page creation.
Eg: /conf/we-retail/settings/wcm/templates/content-page/initial/jcr:content
Hope this helps,
Krishna
Hello Sai..
Thanks for the response . This is what I tried but the values are not shown in the newly created pages . Do we have a format to add the properties like jcr:xxx or cq:xxx . (Trying this in my local instance) .
Thanks
Krishna
@krishker There is no format such that, it takes the name attribute of your custom property.
For Eg:
you have a text field with ./sampleProperty
Navigate to initial content of your template node and save that custom property with the value you want to come as part of page creation with this template
Now when you create a page using this template you can see that value you have given in the page properties.
Hope this helps,
Krishna
Thank you Sai.
You can overlay or override the properties in your template and then you can provide the default values to the properties.
Thanks
Shivam
Hello Shivam ,
Thsnka for the response. My requierement is for custom properties , which i need to add on page creation based on templates.
Regards
Krishna
Views
Likes
Replies