I have a root page say en, en has property cancelInsta checkbox checked and i have page en/index on this page the value of the checkbox returning is true and i have another page en/profession/product on this page the value is returning false.
The vinheritedpageproperties value is returning different on different pages any help on this.
Solved! Go to Solution.
Views
Replies
Total Likes
Have you verified the properties on the jcr:content of the page and parents' in it's hierarchy?
Alternatively, If you try to open page properties dialog of the the newly created page and submit without doing any modifications, Do you still see it returning the value true?
Hi @Keerthi0555 ,
I will explain the working mechanism for inharitedPageProperties, whatever the property name you are looking for, it will start looking the property from the immediate parent, if not found then parent's parent and so on, so in this hierarchical call it will pick the first occurrence and return the value so probable solution to your problem will be check the property in the page hierarchy if it available somewhere other than the root page, delete those it should be working.
Hope this helps
Umesh Thakur
Hi,
I have it the property on root page level only not on page level.
Views
Replies
Total Likes
Hi @Keerthi0555 - Have you already verified that the property "cancelInsta" value has not been over ridden at current page or immediate parent page level?
I would start by comparing the values directly on jcr:content nodes of en/profession/product and en/profession to see if cancelInsta property exists. It's quite possible that the checkbox value of False might have got submitted inadvertently, while updating other properties on the dialog and submitting it.
Either way, let us know what you see!
- Fani
yes the cancelInsta property is there only at root level page not at page level. I created new page that page under root for that page also it's returning correct value but not for en/profession/product .
Views
Replies
Total Likes
Have you verified the properties on the jcr:content of the page and parents' in it's hierarchy?
Alternatively, If you try to open page properties dialog of the the newly created page and submit without doing any modifications, Do you still see it returning the value true?
The "uncheckedValue" property on your checkbox field might be causing the value to be set as "false", when you inadvertently submit the dialogs on other pages. You can either remove this property or run your logic around "true" value of the field.
@Keerthi0555 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies