Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Touch UI -Reuse authoring values in dialog fields

Rajalakshmi
Level 2
Level 2

Hi  Devs, we can able to reuse only the dialog fields using 'resourceType "granite/ui/components/foundation/include" ' method. But can we reuse the authored values of one component to other reused components, so we don't need to do authoring for all similar reused components multiple times. Is there any solution for this in AEM 6.5? 

 

Thanks.

1 Accepted Solution
Manjunath_K
Correct answer by
Community Advisor
Community Advisor

Hi @Rajalakshmi,

If you want reuse component configured in one page in another page, there are many ways to achieve this. below are some

 

1. Convert component A configured on Page A to "Experience Fragment Variation" & reuse that converted experience fragment variation on Page B by configuring fragment variation path in Experience Fragment component.

 

Convert to Experience Fragment Variation

convert2.png

 

 

Configure fragment variation path in Experience Fragment component

convert1.PNG

 

2. Use iparsys, drag & configure component in iparsys in root/parent page. all the child pages will have this component gets inherited & we can cancel inheritance in some child pages if we don't want that component to get inherited.

resourceType='foundation/components/iparsys'

 

 

Hope this helps!

View solution in original post

4 Replies
santhosh_kumark
Community Advisor
Community Advisor

Hi @Rajalakshmi ,

 

If you want to use same content at multiple pages, you can achieve it using creating experience fragment. In another case you can try below.

 

Inheritance

it is implemented by components like the iparsys or by using the InheritanceValueMap of Sling. In this case the reference target is always the parent (page/node). This approach is helpful when you want to inherit content down the tree (e.g from the homepage of the site to all individual pages); with the iparsys it’s hte content of a parsys, with the InheritanceValueMap it’s properties.

e.g. https://javaecm.com/tag/iparsys/

 

Reference

it is implemented by data-sly-resource attribute in HTL similar to sling include, this includes the result of rendering the indicated resource through the sling resolution and rendering process.

e.g.

<article data-sly-resource="${ @ path='path/to/resource'}"></article>

more info

https://docs.adobe.com/content/help/en/experience-manager-htl/using/htl/block-statements.html

 

Regards,

Santosh

Manjunath_K
Correct answer by
Community Advisor
Community Advisor

Hi @Rajalakshmi,

If you want reuse component configured in one page in another page, there are many ways to achieve this. below are some

 

1. Convert component A configured on Page A to "Experience Fragment Variation" & reuse that converted experience fragment variation on Page B by configuring fragment variation path in Experience Fragment component.

 

Convert to Experience Fragment Variation

convert2.png

 

 

Configure fragment variation path in Experience Fragment component

convert1.PNG

 

2. Use iparsys, drag & configure component in iparsys in root/parent page. all the child pages will have this component gets inherited & we can cancel inheritance in some child pages if we don't want that component to get inherited.

resourceType='foundation/components/iparsys'

 

 

Hope this helps!

View solution in original post

Arun_Patidar
Community Advisor
Community Advisor

Hi,
OOTB, you can't do that. there can be two options :

1. Authored =component as XF and reuse in the pages

2. Give an option in the dialog to select a pre-authored value set.but this option is not Authored friendly.