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've a simple CTA macro that editors can insert into a blog article at any point they like. This works well with static content but I'd like to give them the ability to edit the macro's content in the article. I've added a field for 'ctaHeading' to the article doctype and in the macro replaced the static heading with:
but it doesn't recognise the Model so there's an Error loading Partial View script.
Normally I'd pass the model in the view when Rendering the macro but in this instance it's inserted inside the RTE so there's no template to edit, apart from the macro itself.
Is it possible to display the current document's content in a macro that has been inserted through the RTE?
You can get it by doing something like this:
var currentPage = Umbraco.AssignedContentItem;
Normally I'd pass the model in the view when Rendering the macro but in this instance it's inserted inside the RTE so there's no template to edit, apart from the macro itself. tellthebell
That works. Thanks Lucas.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted