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

bkhatr
Community profile bkhatr Level 1
Job title here
Location here
1 BADGE
Level 1

Level 1

Learn more
Joined the community 03-03-2021 4:18:30 AM
Offline
Top badges earned by bkhatr
Customize the badges you want to showcase on your profile
Re: How to identify if URL contains editor.html in Sightly
Avatar
Boost 1
Level 1
bkhatr
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
bkhatr
- Adobe Experience Manager
What are you trying to achieve by locating "editor.html" in URL?.

Views

395

Likes

0

Replies

0
Re: How to identify if URL contains editor.html in Sightly
Avatar
Boost 1
Level 1
bkhatr
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
bkhatr
- Adobe Experience Manager
Are you trying to differentiate between preview and authoring mode?.

Views

427

Likes

0

Replies

0
Re: fetch window URL and verify using data-sly-test
Avatar
Boost 1
Level 1
bkhatr
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
bkhatr
- Adobe Experience Manager
Hi, It will not be appropriate to rely on URL to differentiate between Author and Publish environment. You can use run modes to differentiate between Author and Publish environment. Now we need to locate current run modes in our Sightly/HTL . To achieve this, we can use Sightly/HTL JavaScript Use-API. Below is the sample code to find out current run modes : 1. Creating JavaScript file containing use-class under same path where our Sightly/HTL resides : runmodes.jsvar SlingSettingsService = Packa...

Views

157

Likes

2

Replies

0
Likes from