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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Did you added the node in last?
Can you share node structure screenshot?
Views
Replies
Total Likes
Hi Himanshu,
add a property sling:vanityOrder with lower number value like 20 . This would add your new console at the last
Views
Replies
Total Likes
<?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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies