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
Hi guys,
I'm just trying to upgrade a website from 7 to 8. It's going ok but one thing I can't figure out is how to use the umbraco helpers in partial views like Umbraco.Truncate and Umbraco.StripHtml are those no longer available in 8?
Thanks, Justyna
Hello Justyna
You have to use other helpers.
Thanks, Alex
A lot of helpers are moved from Umbraco to Html.
So instead of:
@Umbraco.If() @Umbraco.StripHtml @Umbraco.Truncate @Umbraco. etc...
you can use:
@Html.If() @Html.StripHtml @Html.Truncate @Html. etc...
If you used another one just check the Html helper first.
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
umbraco helpers in partial view in Umbraco 8
Hi guys,
I'm just trying to upgrade a website from 7 to 8. It's going ok but one thing I can't figure out is how to use the umbraco helpers in partial views like Umbraco.Truncate and Umbraco.StripHtml are those no longer available in 8?
Thanks, Justyna
Hello Justyna
You have to use other helpers.
Thanks, Alex
A lot of helpers are moved from Umbraco to Html.
So instead of:
you can use:
If you used another one just check the Html helper first.
Thanks
is working on a reply...