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?
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?
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.
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
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.
@sebastiaan,
That doesn't help I guess because the {locallink:xxxx} and UMBRACO_MACRO? are embedded in the rich-text.
Cheers,
Richard
is working on a reply...
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.