I currently migrating from old CUG to new and stumbled with the following problem: in the previous version, we could add property cq:cugPrincipals to the page template, and all pages created with this template will have this CUG by default. But in the new version, we have to use rep:CugPolicy node with rep:principalNames properties for this. I create this node under the page template and create a page with this template but it does not appear in the page structure and the page doesn`t have configured CUG by default. Does it even possible with the new CUG approach? Maybe I miss something?
Thanks, but unfortunately we have the opposite architecture. And CUG protected pages will be at the end of the nodes hierarchy. For example, we have something similar to the following structure
pageWithFormA --confirmationPageAWithCUG pageWithFormB --confirmationPageBWithCUG ..... and so on
So on the confirmation page, you can get it only after submitting the corresponding form. But all this "confirmationPages" has the same template so it`s convenient to use CUG in template how it was before