この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
Hi,
Regarding editable templates, I'm having a problem setting up two different lists of allowed components for two distinct parsys, which are included a single component.
I've tried in three ways:
- Adding the old "page resType --> parName --> components: [...]" configuration under project design folder (now in apps, not etc)
- Component wrapper, with 2 parsys. Editing the list of allowed components for this specific component works, but i have the same list on both the parsys.
- Component wrapper, which includes 2 other components (wrapper-right, wrapper-left). Left and right extend wcm responsivegrid component with his design dialog OOB. Editing right and left list of allowed components results in no components available on both responsive grids.
Is there any way to configure two separate lists of components for the 2 parsys ?
Thank you
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
Thank you, I've succeded using another method.
For anyone interested:
- Created two wrapper components (wrapperLeft, wrapperRight, both with superType --> responsivegrid), included by wrapper component (with data-sly-resource), instead of referencing directly two responsivegrid
- Created and linked two different policies for wrapperLeft and wrapperRight
Now, if I add multiple wrapper components to the root parsys, the responsive grids follow these policies rules
Thanks dgordon86 and @Arun Patidar for the suggestions
表示
返信
いいね!の合計
Hi,
You can create different policies for different parsys.
please check component level policy at AEM Developer Learning : Dynamic (Editable) Templates in AEM 6.3 : Part-1
表示
返信
いいね!の合計
I know I can set different policies for different parsys, but I need to set different policies for two different parsys that may be added to the page main parsys.
These two parsys or responsive grids are inside a single component.
This is the situation:
Page
|--- Main Parsys ---> Policy ( group1 - Contains wrapper component)
So if I add a wrapper component to the main parsys, I'll have two new parsys. I need to set two different policies for these parsys, that are not present in the initial content of the page, but they are optional (included in the wrapper component).
Page
|--- Main Parsys ---> Policy ( group1 - Contains wrapper component)
|---->Wrapper component
|----> Parsys Left ( component group 2 )
|----> Parsys Right( component group 3)
Also with the help of the article I've not been able to set these policies.
Thank you anyway
表示
返信
いいね!の合計
I'm assuming your wrapper component includes the Parsys Left/Right via a data-sly-resource or cq:incude? These will be artificial resources at first and the Template editor does not seem to like artificial resources. The solution is to make sure the nodes exist, either by manually adding them in the Template Type definition or by using something like cq:template in the component definition. Check out how Asset Share Commons does this:
表示
返信
いいね!の合計
Thank you, I've succeded using another method.
For anyone interested:
- Created two wrapper components (wrapperLeft, wrapperRight, both with superType --> responsivegrid), included by wrapper component (with data-sly-resource), instead of referencing directly two responsivegrid
- Created and linked two different policies for wrapperLeft and wrapperRight
Now, if I add multiple wrapper components to the root parsys, the responsive grids follow these policies rules
Thanks dgordon86 and @Arun Patidar for the suggestions
表示
返信
いいね!の合計
Nice solution - thank you for posting!
表示
返信
いいね!の合計
I created a component specific policy and manually added components [] property and added the required component group also.
There are three parsys in my components and the only above added components are allowed in those parsys.
How I will add another component or group without crx/de or code change because the Allowed Component policy is available only on the template level?
表示
返信
いいね!の合計