HOW TO CUSTOMIZE AEM CREATE PAGE DEFAULT BEHAVIOR IN Touch UI | Community
Skip to main content
Level 3
December 19, 2017
Question

HOW TO CUSTOMIZE AEM CREATE PAGE DEFAULT BEHAVIOR IN Touch UI

  • December 19, 2017
  • 6 replies
  • 5441 views

I have a requirement to customize the create page name functionality in Touch UI.

We are doing the same in Classical UI by using this "CQ.wcm.Page.getCreatePageDialog"   and I am looking for the same in Touch UI.

Any ideas how to implement that?

Thanks In Advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

manoj_devapath
Level 5
December 20, 2017

Please mention with aem version your are using. Overlay path may vary with AEM Versions.

And also please mention which part of touch UI are looking to customize.

Is it page creating on localhost:4533/sites.html ?

smacdonald2008
Level 10
December 20, 2017

What are you trying to change in the TOuch UI environment?

Hemant_arora
Level 8
December 20, 2017

Please refer to the below link
CQ5 | AEM6 Solutions and Suggestions: June 2016

Customize the template selection step in wizard step-1

You need to write a clientlib file with following code to handle the template selection step-

This example explains how to auto select the template if only one template is available for selection-

$(document).on("foundation-contentloaded", function(e) {

    if (($(".foundation-collection-item").length==1) && ($(".foundation-collection-item.selected").length == 0)) {

        $('.foundation-collection-item').click();

        $(':button.coral-Wizard-nextButton').click();

    }

});

Category of the clientlibs can be any of this depending on your requirement-

app.myproject.createpagewizard, cq.gui.siteadmin.admin.publishwizard, dam.gui.admin.publishassetwizard

Level 3
December 20, 2017

Hi Scott,

Trying to customize the name in AEM at the time of creation of page itself.

The name will get auto-generated from the title of the page but existing AEM name functionality little bit different than what we required.

we did same in AEM5.6 and trying to do the same in the Touch UI in AEM6.2 sp1 CRP4 version.

Thanks

Level 3
December 20, 2017

Hi , we are using the AEM6.2 SP1.

manoj_devapath
Level 5
December 21, 2017

Ok Got you.

following is the path where new wizards are created.

/libs/wcm/core/content/sites/jcr:content/actions/secondary/create/items/createpage

and for page creation /libs/granite/ui/components/coral/foundation/collection/actionlink as bellow.

basically you may have to overlay '/libs/granite/ui/components/coral/foundation/collection/actionlink/actionlink.jsp' and update logic in actionlink.jsp

Hope that helps

Thanks,

~Manoj