Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 503 posts 967 karma points c-trib
    Aug 17, 2010 @ 07:29
    Murray Roke
    0

    using locallink and UMBRACO_MACRO parser outside default.aspx

    Hi all,

    I have an MVC application that pulls some bits of data from the umbraco CMS, one of the things is the text from an RTE. I'm doing this outside the context of the umbraco 'default.aspx' page which normally does the render/replace on the text.

    Is there some way to call the routine that converts {locallink:xxxx} and UMBRACO_MACRO?  so I can output the correct HTML?

    Cheers.

    Murray.

  • Richard Soeteman 4054 posts 12927 karma points MVP 3x
    Aug 17, 2010 @ 08:24
    Richard Soeteman
    0

    Hi Murray,

    I suggest you take a look at the Umbraco:Item class this class calls the metyhods to convert the local link. Then maybe write a Helper class to convert it in your MVC app?

    Cheers,

    Richard

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Aug 17, 2010 @ 08:24
    Sebastiaan Janssen
    0

    Hmm.. it might be easier to use umbraco's webservices to pull content out of it?

    That being said, I'm not sure it will render macro's that way.

  • Richard Soeteman 4054 posts 12927 karma points MVP 3x
    Aug 17, 2010 @ 08:27
    Richard Soeteman
    0

    @sebastiaan,

    That doesn't help I guess because the {locallink:xxxx} and UMBRACO_MACRO? are embedded in the rich-text.

    Cheers,

    Richard

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies