Customize Homepage in AEM Classic UI | Community
Skip to main content
Himanshu_Singhal
New Participant
February 3, 2016
Solved

Customize Homepage in AEM Classic UI

  • February 3, 2016
  • 4 replies
  • 1167 views

Hi,

I need to add a custom link on AEM HomePage screen. So, I overlaid wcm/core/content in apps and added node with jcr:mixinTypes : cq:Console. The link is getting displayed properly on the top of all above existing links. 

What I need is to display link at the bottom of all already existing links.

How Can I do so?

Thanks,

Himanshu

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

Hi 

Try adding "sling:vanityOrder": 301 (Bigger number then 300)

Link:- https://edivad.wordpress.com/2013/04/15/customising-cq5s-siteadmin-actions/

//Once you overlayed you could realise that your changes are not reflected by the UI. This is done by the sling:vanityOrder. As /siteadmin is a vanity path pointing to wcm/core/content/siteadmin. The /libs one are picked up. The default value (as of 5.5) is 300. Just update the one under /apps to a greater value. 301 is enough. As practice I like to have my vanitypath order as 400+ though.

 

I hope this will solve your problem.

Thanks and Regards

Kautuk Sahni

4 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
February 4, 2016

Hi 

Try adding "sling:vanityOrder": 301 (Bigger number then 300)

Link:- https://edivad.wordpress.com/2013/04/15/customising-cq5s-siteadmin-actions/

//Once you overlayed you could realise that your changes are not reflected by the UI. This is done by the sling:vanityOrder. As /siteadmin is a vanity path pointing to wcm/core/content/siteadmin. The /libs one are picked up. The default value (as of 5.5) is 300. Just update the one under /apps to a greater value. 301 is enough. As practice I like to have my vanitypath order as 400+ though.

 

I hope this will solve your problem.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Himanshu_Singhal
New Participant
February 4, 2016

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
    jcr:mixinTypes="[cq:Console]"
    jcr:primaryType="cq:Widget"
    sling:redirect="{Boolean}false"
    sling:resourceType="/apps/webcms-ngtv/components/page/sample-tools"
    sling:vanityPath="/sample"
    consoleDescription="sample"
    consoleTitle="sample"
    iconClass="sample"
    jsLibs="[cq.wcm.admin]"
    title="sample"/>

Also, sling:vanityOrder isn't working if we overlay hierarchy in apps. But, if add node in libs with lower vanityOrder value, then it displays at the bottom. 

Lokesh_Shivalingaiah
New Participant
February 3, 2016

Hi Himanshu,

add a property sling:vanityOrder with lower number value like 20 . This would add your new console at the last

edubey
New Participant
February 3, 2016

Did you added the node in last?

Can you share node structure screenshot?