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