Question hst.link and sitemap

20 views
Skip to first unread message

maaax....@gmail.com

unread,
Jul 28, 2016, 3:42:04 AM7/28/16
to Hippo Community
Hi,

I am trying to link to documents with the fixed name "contentdocument" which are located in the folder hierarchy. As I'm trying to hide this fixed name and rather would like to use only the corresponding foldernames in the resulting URL, I have a sitemap entry _any_ with relative content path ${1}/contentdocument.

My question would be, how to link to the different contentdocument beans by using hst.link while still hiding the "contentdocument"? Just by doing some string operations with the path of the folder bean and building the link with path?

My first thought, to use the corresponding folders something like <@hst.link hippobean=folder> is of course not working. On the other hand, letting the sitemap point to just the folder and selecting the true content bean in the component is also not a good solution, as "contentdocument" can be of two different document types which I handle currently by hst:componentconfigurationmappingnames and hst:componentconfigurationmappingvalues.

Any suggestion would be welcome :)

Thanks and best regards,
Max

Jasper Floor

unread,
Jul 28, 2016, 3:55:40 AM7/28/16
to Hippo Community
You can create a sitemap item "contentfolder" with relativecontentpath "contentfolder/contentdocument". Then the document name is hidden and you can still use hst:componentconfigurationmappingnames.

mvg,
jasper

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages