활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
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
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수
Did you added the node in last?
Can you share node structure screenshot?
조회 수
답글
좋아요 수
Hi Himanshu,
add a property sling:vanityOrder with lower number value like 20 . This would add your new console at the last
조회 수
답글
좋아요 수
<?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.
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수