Is it possible to display the current document's content in a macro that has been inserted through the RTE?
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?
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
Is it possible to display the current document's content in a macro that has been inserted through the RTE?
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?
Hello Jusin,
You can get it by doing something like this:
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...