Problem with externallink on the granite/ui/components/coral/foundation/form/pathfield on Adobe 6.4

Avatar

Avatar

alissonxavier27

Avatar

alissonxavier27

alissonxavier27

01-04-2019

Hi Guys,

I'm using the granite/ui/components/coral/foundation/form/pathfield in cq:dialog.

see screenshot below.

1723114_pastedImage_4.png

When I put the external link on the field and after that click on the icon the javascript problem happen.

1723116_pastedImage_10.png

2019-04-01_11-03-33.jpg

has anyone solutions for that?

Thanks

Alisson Xavier

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

02-04-2019

1) Go to /system/console/configMgr

2) Apache Sling Java Script Handler

3) For Source VM & Target VM it needs to be auto. If it's set to some other value, eg 1.5, then you'll get these odd JS undefined errors on a path picker.

You may want to manually purge the client libs cache and sightly cache as well.

- Under \crx-quickstart\launchpad\felix grep for "Outputcache" -- delete the contents of this folder. -- client library cache

- Under \crx-quickstart\launchpad\felix grep for "Classes"  -- delete the contents of this folder. -- sightly cache

Answers (9)

Answers (9)

Avatar

Avatar

SonDang

Employee

Avatar

SonDang

Employee

SonDang
Employee

25-07-2019

This is only needed in author.

Avatar

Avatar

manojd55574250

Avatar

manojd55574250

manojd55574250

25-07-2019

This answer worked for me to.. should this be done only on the author or both auth, pub?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

02-04-2019

IF you want a reference to another site in your web page - assuming in the page's text - you can simply link to an outside URL using the RTE.

Avatar

Avatar

alissonxavier27

Avatar

alissonxavier27

alissonxavier27

01-04-2019

Yes In an AEM web page,

When the user clicks on <a> redirect to URL AEM or to an external website.

Thanks

Alisson Xavier

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

01-04-2019

A PathField or PathBrowser lets you search the JCR - not write external URLS. Where do you want the URL to show up - in an AEM web page?

Avatar

Avatar

alissonxavier27

Avatar

alissonxavier27

alissonxavier27

01-04-2019

I want to write a url that point to an external site or to internal site (AEM).

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

01-04-2019

What exactly are you looknig to do - you want to write a URL that points to an extenal site to a node property?

Avatar

Avatar

alissonxavier27

Avatar

alissonxavier27

alissonxavier27

01-04-2019

Which is the field that I can use to open AEM JCR and write the external link?

Could be pathbrowser?

Thanks

Alisson Xavier

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

01-04-2019

A Pathfield resource type is to open a path in the AEM JCR - when you click on a PathField - you will see something like:

PathField2.png