Highlighted

AEM 6.3 Touch ui for coral pathfield need linkPattern ending with .html

Avatar

Avatar

srinivas_chann1

Avatar

srinivas_chann1

srinivas_chann1

20-09-2019

Hi ,

I am using coral touch ui sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser" 

when user selects the required path in touch ui dialog it must append .html at the end .How to achieve it

The xml data i have is

<accessLevelPath

jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"

fieldLabel="Access Level Page Path :"

name="pagepath"

rootPath="/content">

Thanks

Replies

Highlighted

Avatar

Avatar

Vish_dhaliwal

Employee

Avatar

Vish_dhaliwal

Employee

Vish_dhaliwal
Employee

20-09-2019

This post might help in achieving this feature: Adding .html extension to page selected

Highlighted

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

20-09-2019

You can also use sly to achieve that:

URL manipulation

 

Adds the html extension to a path. More details at [1]

<a href="${item.path @ extension = 'html'}">${item.name}</a>

[1] HTL Block Statements

Highlighted

Avatar

Avatar

srinivas_chann1

Avatar

srinivas_chann1

srinivas_chann1

20-09-2019

Hi,

I would need to show on touch ui dialog and not at page level

Highlighted

Avatar

Avatar

shunnar

Employee

Avatar

shunnar

Employee

shunnar
Employee

20-09-2019

Path Browser is deprecated, please use PathField </libs/granite/ui/components/coral/foundation/form/pathfield> instead

Highlighted

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

22-09-2019

A field that allows the user to enter path.

PathField — Granite UI 1.0 documentation

Highlighted

Avatar

Avatar

srinivas_chann1

Avatar

srinivas_chann1

srinivas_chann1

22-09-2019

Thanks .But for path-field how to add .html  at the end in the dialog when user selects any path

Highlighted

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

23-09-2019

The option i can see here is to overlay the "/libs/granite/ui/components/coral/foundation/form/pathfield/render.jsp and manipulate it as per the business requirement.

NOTE: This will change the code for default pathfield and it will behave the same for all components.

Highlighted

Avatar

Avatar

srinivas_chann1

Avatar

srinivas_chann1

srinivas_chann1

24-09-2019

Thanks for the inputs. But it only required for specific dialog components .So cannot use this approach.

Do we have any other way