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

Desktop and mobile images have same name and resourcetype in sightly

minisanu
Level 3
Level 3

Hi Everyone,

Requirement is to have 1 single image for desktop and mobile version.Right now the HTML is as below .

Two assets have the same name and resourcetype in sightly as below

<div data-sly-resource="${ @path='image', resourceType='xxxxx/components/content/image'}" ></div>

<div data-sly-resource="${ @path='image', resourceType='xxxxx/components/content/image'}" ></div>

In touch UI Mode, I will be able to edit the last one since we have both two node names to be same. I am unable to edit the first image.

In classic UI mode, I am able to edit both the assets .

I need to understand this behaviour. Any help would be appreciated.

Thanks

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

HI,

If you need single image, just go with one item, why are you adding twice?

<div data-sly-resource="${ @path='image', resourceType='xxxxx/components/content/image'}" ></div>

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

HI,

If you need single image, just go with one item, why are you adding twice?

<div data-sly-resource="${ @path='image', resourceType='xxxxx/components/content/image'}" ></div>

View solution in original post