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

Desktop and mobile images have same name and resourcetype in sightly

Avatar

Avatar
Give Back 5
Level 3
minisanu
Level 3

Likes

9 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile

Avatar
Give Back 5
Level 3
minisanu
Level 3

Likes

9 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile
minisanu
Level 3

27-06-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,140 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,140 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

27-06-2019

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>

Answers (0)