Is there a way we can make a component available through code in static templates by default without modifying through design mode in 6.4 version?
Solved! Go to Solution.
Views
Replies
Total Likes
you can do it for static template by updating the /etc/designs/your-site-pages/jcr:content.xml and provide the allowed components name in components property.
If you go on design mode of your page and add the components there for the parsys you can see those values for the pages inside /etc/designs/your-site-pages/jcr:content.xml
Yes you can, For that you need to write Policy under conf/my-project/settings/wcm/policies/.content.xml
and map them with the template policy.
You can set policy in your local and pull it into your code to make it easy. This can be done by the repo tool.
Policy Setup by Authoring: https://www.linkedin.com/pulse/intro-editable-templates-aem-63-joanne-ho/
Repo Tool: https://github.com/Adobe-Marketing-Cloud/tools/tree/master/repo
Hi @Sady_Rifat ,
I want to make the component available throght code for static template and not editable template.
Thanks,
Chinmayi
you can do it for static template by updating the /etc/designs/your-site-pages/jcr:content.xml and provide the allowed components name in components property.
If you go on design mode of your page and add the components there for the parsys you can see those values for the pages inside /etc/designs/your-site-pages/jcr:content.xml
@chinmayis865517 I feel you only have limited options for this..
1. Add in design mode via UI (not your choice)
2. Add same to your etc node programmatically.
3. If you already added any component group instead of component resource types for each component then you can mark your new component to existing added group.
Views
Likes
Replies