After adding a new Page (CMS.File) to the Kentico tree and uploading the file, the produced links to the page, including, alias path, preview and live all result in 404 Page Not Found.
Symptoms would suggest that the content isn't being synchronised to the MVC site. However, there are no pertaining errors in the Event Log application.
I tried the same process with K11 Portal Engine and had no issues.
Any insight would be grateful.
As Juraj pointed out, you'll need a custom page type and controller.
Here's from the Kentico 12 baseline:
Although i should have put the GetAttachmentinfo in a separate repo, but you can get the general idea.
What is the link that you get with the CMS.File page? I had an issue with my url containing 'getdoc' instead of 'getfile'. This caused the 404 in my case.
The preview link employs the getdoc, I changed to getfile and still a 404.
The CMS.File page type should be used for portal engine mainly. If you want to make the links work, then you need to create appropriate routing and MVC code to handle this page - basically as for any other pages. Keep in mind that the MVC app is the one who serves the content - so you need to have the logic implemented there.
Solid answers, @Trevor, that is the approach I ended up taking a few days ago, but was slack at replying. Thank you
Please, sign in to be able to submit a new answer.