Good morning! Attaching files to pages has me stumped. I've attached files as explained here:
https://docs.kentico.com/k9/managing-website-content/working-with-files/page-attachments/attaching-files-to-pages
Added the web part to display on my template - but the default macro gives a 404 error for each file link.
The file url is something like this:
https://the.url.net/cms/getattachment/474219f2-e3a1-4d74-995a-1540a190a04d/11-the-document.pdf;.aspx
But the default transformation
<div>
<a target="_blank" href="<%# GetAbsoluteUrl(GetAttachmentUrl(Eval("AttachmentName"), Eval("NodeAliasPath")), EvalInteger("AttachmentSiteID")) %>">
<%# Eval("AttachmentName",true) %>
gives me something like this:
https://the.url.net/cms/getattachment/page-name/11-the-document.pdf;.aspx
I'm not grouping these files - my goal is to attach up to 50 files to a page - then use Smart Search to be able to filter them by searching any term on the uploaded documents.
"The smart search allows users to search through the content of files uploaded as page attachments. The attachment search supports both types of file storage provided by Kentico (database or file system)." (lets hope this works)
I've looked at Brandon's blog post - but these are ungrouped attachments - so I'm still unable to find a solution. thanks in advance for your feedback.