Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Writing and reading value in widget to parent node

$
0
0

Hello,

 

CQ 5.6.1

 

Using the Page's dialog, I have a property being written to and read from <current page>/jcr:content@isMenuRoot.

 

I'd like to have another statically defined component on the page read and write to the same property on the page node.  It's easy enough to get the value written.  In this component's dialog, I set the name of the widget to "../isMenuRoot".  When I check the box and click OK, the expected attribute is written to the jcr:content node.  When I leave the box unchecked, the @isMenuRoot is removed.

 

However, the saved value isn't being loaded when the dialog is invoked.  Hooking into the loadcontent event for the dialog simply doesn't show it in the record.  I've tried this with various xtypes and it makes no difference.

 

I could have sworn I'd written and read values to parent nodes in older versions of CQ, but perhaps I'm remembering wrong.

 

Does anyone know if I can load values written to a parent node from a component's dialog?

 

Thanks!

Garth


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>