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

AEM 6.2: Turn off geolocation that's happening on my page

Avatar

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile
jayv25585659
Level 4

28-08-2018

TLDR: Geolocation location happening on new page when it's not supposed to.

-----------------------------------------------------------------------------------------------

So I have the following template config

path = ui.apps/src/main/content/jcr_root/apps/paperland/components/template/new-template/.content.xml

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
   jcr:description="Template with focus on content."
   jcr:primaryType="cq:Template"
   jcr:title="New Content Page"
   allowedPaths="[/content/.+]"
   ranking="{Long}100">

<jcr:content
   jcr:primaryType="cq:PageContent"
   sling:resourceType="paperland/components/page/new-page">

<cq:responsive jcr:primaryType="nt:unstructured">

<breakpoints jcr:primaryType="nt:unstructured">

<phone jcr:primaryType="nt:unstructured" title="{String}Phone" width="{Decimal}768"/>

<tablet jcr:primaryType="nt:unstructured" title="{String}Tablet" width="{Decimal}1200"/>

</breakpoints>

</cq:responsive>

</jcr:content>

</jcr:root>

I also have this page config

path = ui.apps/src/main/content/jcr_root/apps/paperland/components/page/new-page/.content.xml

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
   jcr:primaryType="cq:Component"
   jcr:title="new content page"
   sling:resourceSuperType="paperland/components/page/base-page"
   componentGroup=".hidden"/>

The new-page is an copy/paste version of ui.apps/src/main/content/jcr_root/apps/paperland/components/page/content-page. The only difference is that the jcr:title is different.

If I go into CRXDE and change the "sling:resourceType" to point to content-page, I DO NOT get any geolocation prompt. If I change it back to content-page1, geolocation is back.

I am using navigator functions in my custom JS file so as a test, I have removed all the contents of the several JS files we are using (located at /etc/designs/paperland/clientlin-site/js)

1. Can someone please assist in explaining what's happening?

2. Can someone please help in turning off geolocation?

Thanks!

Replies

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

28-08-2018