Highlighted

Scaffolding - Create Page Names on Rollout?

Avatar

Avatar

a74048191r

Avatar

a74048191r

a74048191r

15-05-2020

I have a product catalog where on rollout, the authored jcr:title (below) is getting used to create both the page name (e.g. pagename.html) and title of the new page.    I'm trying to create a different field to author a page name separate from the title but haven't been able to figure out what to use in the xml.  Is this possible in a rollout process? 

I'm finding that on rollout, special chars in the jcr:title value are getting converted to underscores in the page name - probably since page names are normally limited to letters, numbers, dashes, commas, or underscores when creating a page.

We're on 6.5.2.  Thanks.

<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Title"
name="./jcr:title"
fieldDescription="Title of product"
renderReadOnly="{Boolean}true"
required="{Boolean}true"/>

Replies

Highlighted

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

15-05-2020

So you want to change the page name on rollout?

Highlighted

Avatar

Avatar

a74048191r

Avatar

a74048191r

a74048191r

18-05-2020

I'd like to add an author field that accepts a value for the pagename, but I can't figure out what name to use in the scaffold. It's for an Arabic site, so the chars in the title are getting converted to underscores on rollout (e.g. _____.html). I guess the other question would be if it is possible to save Arabic chars in the pagename?