Desktop and mobile images have same name and resourcetype in sightly | Adobe Higher Education
Skip to main content
Level 3
June 27, 2019
해결됨

Desktop and mobile images have same name and resourcetype in sightly

  • June 27, 2019
  • 1 답변
  • 1088 조회

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

이 주제는 답변이 닫혔습니다.
최고의 답변: arunpatidar

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>

1 답변

arunpatidar
Community Advisor
Community Advisor
June 27, 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>

Arun Patidar