Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Dynamic resource name in data-sly-resource

Avatar

Level 3

Hi, 

I need to have dynamic resource name in  data-sly-resource ="${'resource/name' @resourceType = 'path/to/resource'}" for the list of items

code snippet:

    <div class="tab-content" data-sly-list.tabItem = "${tab}">
            <div id="tab${tabItemList.index}" class="tab">
                  <sly data-sly-resource = "${'tabItemList' @ resourceType= '/libs/wcm/foundation/components/responsivegrid'}"/>
            </div>
        </div>

Please help to over come this issue..

Thanks,
Raghava

1 Accepted Solution

Avatar

Correct answer by
Employee

You can do something like:

${ tabItem.path }

By default you don't have to specify the resourceType

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

You can do something like:

${ tabItem.path }

By default you don't have to specify the resourceType