Dynamic resource name in data-sly-resource | Community
Skip to main content
Raghava_Joijode
New Participant
December 24, 2016
Solved

Dynamic resource name in data-sly-resource

  • December 24, 2016
  • 1 reply
  • 1547 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

You can do something like:

${ tabItem.path }

By default you don't have to specify the resourceType

1 reply

Feike_Visser1
Feike_Visser1Accepted solution
Employee
December 25, 2016

You can do something like:

${ tabItem.path }

By default you don't have to specify the resourceType