Expand my Community achievements bar.

page properties issues - AEM cloud

Avatar

Level 4

Hi Team,

I was trying to update the basic tab fields & using sling:hideResource to hide the all other tabs in the page properties. But Basic tab is not showing alone on the page. If I unhide any other tab then only can see the basic tab along with the other tab which is unhide. Could someone help me on this.

 

sling:respurceSuperType - core/wcm/components/page/v2/page

 

Thank you

 

7 Replies

Avatar

Community Advisor

Can you share the cq_dialog.xml?

 

Himanshu Jain

Avatar

Level 4

Hi @Himanshu_Jain , please find the cq_dialog.xml as below.

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Page"
sling:resourceType="cq/gui/components/authoring/dialog"
extraClientlibs="[cq.common.wcm,core.wcm.components.page.v2.editor,cq.wcm.msm.properties,granite.contexthub.configuration,cq.siteadmin.admin.properties]"
helpPath="https://www.adobe.com/go/aem_cmp_page_v2"
mode="edit"
trackingFeature="core-components:page:v2">
<content
granite:class="cq-dialog-content-page"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tabs
granite:class="cq-siteadmin-admin-properties-tabs"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs"
size="L">
<items jcr:primaryType="nt:unstructured">
<basic
jcr:primaryType="nt:unstructured"
jcr:title="Basic"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<title
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
jcr:title="Title and Tags"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Defines the page meta title for SEO, as well as a title displayable in the page content (unless an overriding 'Page Title' is defined)."
fieldLabel="Title"
name="./jcr:title"
renderReadOnly="{Boolean}true"
required="{Boolean}true">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="jcr:title"/>
</title>
<pagename
cq:hideOnEdit="{Boolean}true"
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Name"
name="pageName"
validation="admin.pagename"/>
<tags
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
allowBulkEdit="{Boolean}true"
autocreateTag="{Boolean}true"
fieldDescription="Defines the page meta tags for SEO."
fieldLabel="Tags"
multiple="{Boolean}true"
name="./cq:tags">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="cq:tags"/>
</tags>
<startdate
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
fieldLabel="Start Date"
name="./startDate"
type="datetime"/>
<endDate
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
fieldLabel="End Date"
name="./endDate"
type="datetime"/>
</items>
</title>
<branding
jcr:primaryType="nt:unstructured"
jcr:title="Branding"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<brandSlug
granite:class="cq-siteadmin-admin-properties-basic-brandSlug"
jcr:primaryType="nt:unstructured"
sling:resourceType="core/wcm/components/commons/editor/dialog/inherited/v1/inherited"
heading="Brand Slug"
path="${empty param.item ? requestPathInfo.suffix : param.item}"
prop="brandSlug"/>
</items>
</branding>
<htmlid
jcr:primaryType="nt:unstructured"
jcr:title="HTML ID"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<id
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="HTML ID attribute to apply to the component."
fieldLabel="ID"
name="./id"/>
</items>
</htmlid>
<moretitles
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/basic/items/column/items/moretitles"/>
<onofftime
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/basic/items/column/items/onofftime"/>
<vanityurl
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
jcr:title="Vanity &amp; Navigation URL "
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<vanitypath
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
cq-msm-lockable="sling:vanityPath"
fieldLabel="Vanity (Shortend) URL"
name="./sling:vanityPath"
renderReadOnly="{Boolean}true">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="sling:vanityPath"/>
</vanitypath>
</items>
</vanityurl>
<seo
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
jcr:title="SEO Page Properties"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<seo-title
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Title Tag"
name="./seo-title">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="seo-title"/>
</seo-title>
<seo-description
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Metadata Description"
name="./seo-description">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="seo-description"/>
</seo-description>
<seo-canonical
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Canonical URL"
name="./seo-canonical">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="seo-canonical"/>
</seo-canonical>
<seo-toggle
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Toggle Type"
name="./seo-toggle">
<items jcr:primaryType="nt:unstructured">
<on
jcr:primaryType="nt:unstructured"
text="On"
value="on"/>
<off
jcr:primaryType="nt:unstructured"
text="Off"
value="off"/>
</items>
</seo-toggle>
</items>
</seo>
</items>
</column>
</items>
</basic>
<advanced
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/advanced"/>
<thumbnail
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/thumbnail"/>
<socialmedia
jcr:primaryType="nt:unstructured"
jcr:title="Social Media"
sling:hideResource="{Boolean}true"
sling:orderBefore="cloudservices"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<section
jcr:primaryType="nt:unstructured"
jcr:title="Social Media sharing"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<inputgroup
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/text"
text="Enable user sharing for"/>
<field
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<facebook
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./socialMedia"
renderReadOnly="{Boolean}true"
text="Facebook"
value="facebook">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="socialMedia"/>
</facebook>
<pinterest
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./socialMedia"
renderReadOnly="{Boolean}true"
text="Pinterest"
value="pinterest">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="socialMedia"/>
</pinterest>
</items>
</field>
<facebookAppId
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Facebook APP ID to be used if Facebook sharing is enabled. See https://developers.facebook.com/apps for details"
fieldLabel="Facebook App ID"
name="./facebookAppId">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="facebookAppId"/>
</facebookAppId>
<variantpath
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/experience-fragments/editor/components/xffield"
fieldDescription="Choose the social media variation of experience fragment to be used for generating page meta data for social media."
fieldLabel="Preferred XF variation"
filter="folderOrVariant"
name="./variantPath"
renderReadOnly="{Boolean}true"
translateOptions="{Boolean}false"
variant="sm">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="fragmentPath"/>
</variantpath>
<socialmedia_type
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
allowBulkEdit="{Boolean}true"
ignoreData="{Boolean}true"
name="./socialMedia@TypeHint"
value="String[]"/>
</items>
</section>
</items>
</column>
</items>
</socialmedia>
<cloudservices
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/cloudservices"/>
<personalization
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/personalization"/>
<permissions
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/core/content/sites/properties/tabs/permissions"/>
<pwa
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/wcm/foundation/components/basicpage/v1/basicpage/tabs/pwa"/>
</items>
</tabs>
</items>
</content>
</jcr:root>

Avatar

Community Advisor

Are you modifying OOTB core component?

If yes, then i will suggest you to extend it and then add the changes.

Himanshu Jain

Avatar

Level 4

No, trying to update the basic tab on extending component.

Lakshmi9_0-1657537267109.png

can able to see the updated fields but the Basic tab alone.

 

Avatar

Community Advisor

@Lakshmi9 

 

From the xml structure that you shared. I see some difference in the resource Type reference for basic tab. Compared with other tabs once check and evaluate 

 

Jagadeesh_Prakash_0-1657541582224.png

 

Avatar

Level 4

Hi @Jagadeesh_Prakash have tried the above for testing, but still no luck. Any other suggestions please?