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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Dynamic resource name in data-sly-resource

Raghava_Joijode
Level 3
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
Feike_Visser1
Correct answer by
Employee
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
Feike_Visser1
Correct answer by
Employee
Employee

You can do something like:

${ tabItem.path }

By default you don't have to specify the resourceType

View solution in original post