Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Hewitt 65 posts 126 karma points
    Nov 20, 2012 @ 17:09
    Simon Hewitt
    0

    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?

    Thanks

    Simon

Please Sign in or register to post replies

Write your reply to:

Draft