Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a global helper file and I get the following error:
IPublishedElement could not be found
I've imported the following namespaces
@using Umbraco; @using Umbraco.Web; @using Umbraco.Core.Models;
What is it that I'm missing ?
It's a cloud solution straight out of the box.
IPublishedElement is in Umbraco.Core.Models.PublishedContent
Umbraco 8 changed that, so the namespace is Umbraco.Core.Models.PublishedContent now:
Umbraco.Core.Models.PublishedContent
https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs#L4
Sorry Søren. I just re-read your comment, and that's actually what you're writing. #H5IS
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
IPublishedElement could not be found, in global helper file
I have a global helper file and I get the following error:
I've imported the following namespaces
What is it that I'm missing ?
It's a cloud solution straight out of the box.
IPublishedElement is in Umbraco.Core.Models.PublishedContent
Umbraco 8 changed that, so the namespace is
Umbraco.Core.Models.PublishedContent
now:https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs#L4
Sorry Søren. I just re-read your comment, and that's actually what you're writing. #H5IS
is working on a reply...