Hi All,
I have a header component which uses a experience Fragment and in this XF i have a header component mapped. This Experience Fragment is been used inside my home page editable template. Now i am trying to access a page properties from my home page inside this header component mapped to Experience Fragment
Page Template > XF > Header Component(Access Page Properties).
Below is my code inside the header component model
@Self Resource resource; @PostConstruct protected void init() { try { InheritanceValueMap iProperties = new HierarchyNodeInheritanceValueMap(resource); String value = iProperties.getInherited("txPath",String.class);
I am always getting null value for txPath. I had checked the property value under /content/myprj/us/en/jcr:content and the value of txPath exists.
I am not sure whether i can access the property of a page from experience fragment component since both follows a different /content path(Not hierarchy).
Suggest Please