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.
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.
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.
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
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.
Continue discussion