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
Umb 7.13.1 upgraded from 7.5.4
Could someone please tell me what has changed between 7.5.4 and 7.13.1 to prevent the following macro from displaying in an RTE? Error is indicated in the code:-
@using ContentModels = Umbraco.Web.PublishedContentModels;
var assetId = Model.MacroParameters["asset"];
dynamic asset = Umbraco.TypedContent(assetId);
@helper RenderAsset(ContentModels.MacroAccordion macroAccordion)
var accordions = macroAccordion.Accordion.Select(x => new ContentModels.Accordion(x));
foreach (var accordion in accordions)
@(accordion.Content) <<<< Error : 'Cannot render a macro when there is no current PublishedContentRequest.'
accordion.Content "can" contain another macro (not the same macro) and displays perfectly on the original site when it does.
Any clues how to make this work again would be appreciated.
I'm not quite sure what might be the cause of this but I'm wondering if you have consulted the version specific upgrade documentation to see if anything could be causing this? https://our.umbraco.com/documentation/Getting-Started/Setup/Upgrading/version-specific
Quite a lot has changed under the hood with all the minor versions from 7.5 to 7.13 so I guess it can be a bit hard to pinpoint the exact issue - Does the log file review some additional details about this or is it just showing the same error?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted