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.
SOLVED

Customize Homepage in AEM Classic UI

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

4 Replies

Avatar

Level 10

Did you added the node in last?

Can you share node structure screenshot?

Avatar

Level 10

Hi Himanshu,

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

Avatar

Community Advisor

<?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. 

Avatar

Correct answer by
Administrator

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