Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

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

Avatar

Level 8

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

9 Replies

Avatar

Employee Advisor

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

Avatar

Level 8

Hi,

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

Avatar

Employee

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

Avatar

Level 8

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

Avatar

Employee Advisor

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.

Avatar

Level 8

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

Do we have any other way

Avatar

Level 2

Hi @srinivas_chann1 , 

We are also facing similar issue. Do you have any solution.

Thanks