Copied to clipboard

Flag this post as spam?

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


  • Nikhil Joshi 15 posts 86 karma points
    Feb 08, 2017 @ 16:15
    Nikhil Joshi
    0

    Replace string values in Umbraco Page Field : @Umbraco.Field("content")

    I have -- @Umbraco.Field("content") -- as Umbraco page field. This contains big HTML along with placeholders. Inside custom macro, I need to replace placeholder with some other HTML value and then set it back inside -- @Umbraco.Field("content") -- Please help.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Feb 09, 2017 @ 22:40
    Alex Skrypnyk
    100

    Hi Nikhil

    Its not easy task to change html from the code

    With c# you can do it with "html agility pack" library. But I would recommend you to use jquery or some other js, it's much easier to do after page loading.

    Thanks,

    Alex

  • 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.

    Continue discussion

Please Sign in or register to post replies