Multiple macros in RTE using the same user control
I have a related link macro that users can but into the content of their page, I need to be able to support many of these macros in a single piece of content. The macro has two parameters (the content to link to and a small description) which I pick up in the user control using;
private static int? _ContentPage; public int? ContentPage { set { _ContentPage = value; } get { return _ContentPage; } } private static string _ShortDescription; public string ShortDescription { set { _ShortDescription = value; } get { return _ShortDescription; } }
The issue I have is when you have multiple version of the macro in a piece of content, the parameters from the last macro are used in all version when rendered.
What method should I use to grab the correct params per macro?
Multiple macros in RTE using the same user control
I have a related link macro that users can but into the content of their page, I need to be able to support many of these macros in a single piece of content. The macro has two parameters (the content to link to and a small description) which I pick up in the user control using;
The issue I have is when you have multiple version of the macro in a piece of content, the parameters from the last macro are used in all version when rendered.
What method should I use to grab the correct params per macro?
Thanks
Simon
is working on a reply...