활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi,
In particular, I want to be able to add custom properties to sling:Mapping nodes.
Is there a mixin type I can use with sling:Mapping nodes so that I can add custom properties to them?
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
LinearGradient wrote...
Hi Sham,
I want to add an attribute domainName that stores the domain name (e.g. www.example.com) associated with a given sling:Mapping node under /etc/map (or /etc/map.publish).
Thanks.
sling:Mapping already provides required matching and redirection properties (sling:match & sling:internalRedirect) for an domainname. What benefit you will achieve adding additional one. I am still not clear of use case.
조회 수
답글
좋아요 수
Hi,
Just to be clear, the use of the sling:Mapping node type is not strictly necessary. You can use any node type.
Justin
조회 수
답글
좋아요 수
Hi Sham,
I want to add an attribute domainName that stores the domain name (e.g. www.example.com) associated with a given sling:Mapping node under /etc/map (or /etc/map.publish).
Thanks.
조회 수
답글
좋아요 수
Hi Justin,
Thanks for the reply. Could you please explain if there are any disadvantages to using another node type, e.g. nt:unstructured?
Thanks.
조회 수
답글
좋아요 수
LinearGradient wrote...
Hi Sham,
I want to add an attribute domainName that stores the domain name (e.g. www.example.com) associated with a given sling:Mapping node under /etc/map (or /etc/map.publish).
Thanks.
sling:Mapping already provides required matching and redirection properties (sling:match & sling:internalRedirect) for an domainname. What benefit you will achieve adding additional one. I am still not clear of use case.
조회 수
답글
좋아요 수
Sham HC wrote...
![]()
LinearGradient wrote...
Hi Sham,
I want to add an attribute domainName that stores the domain name (e.g. www.example.com) associated with a given sling:Mapping node under /etc/map (or /etc/map.publish).
Thanks.
sling:Mapping already provides required matching and redirection properties (sling:match & sling:internalRedirect) for an domainname. What benefit you will achieve adding additional one. I am still not clear of use case.
When I delete a site, I want to delete all its sling:Mapping nodes too. Right now the query and the code that finds sling:Mapping nodes is not elegant. If I could add a domainName property to sling:Mapping nodes the query could become something like this:
SELECT * FROM [sling:Mapping] WHERE domainName = "example.com"
조회 수
답글
좋아요 수
LinearGradient wrote...
When I delete a site, I want to delete all its sling:Mapping nodes too. Right now the query and the code that finds sling:Mapping nodes is not elegant. If I could add a domainName property to sling:Mapping nodes the query could become something like this:
SELECT * FROM [sling:Mapping] WHERE domainName = "example.com"
I was asking your usecase so that I can file enhancement request if it qualifies. IMO this should be handled easily at package with right design. Regarding original question technical you can achieve by reregistering the node however it is not recommended and also creates some noice in support perspective.
조회 수
답글
좋아요 수