Copied to clipboard

Flag this post as spam?

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


  • Yanick Van Barneveld 27 posts 148 karma points
    Dec 12, 2016 @ 13:18
    Yanick Van Barneveld
    0

    UIOMaticListViewField parse HTML

    Hi,

    I created my own export function in the Umbraco Backoffice which is located on the following URL: /umbraco/backoffice/export/event/{id}. Now I want to create a clickable URL inside my UIOMaticListView by using a UIOMaticListViewField on the following way:

    [Ignore]
    [UIOMaticListViewField(Name = "Exporteer")]
    public string Export { get { return ("<a href='/umbraco/backoffice/export/event/8' target='_blank'>Exporteer Evenement</a>"); } }
    

    Unfortunately the output of the UIOMaticListViewField is just a plain string inside the ListView and not formatted to a HTML href.

    I am not sure of how to fix this, can anyone help me out of this one?

    Kind regards,
    Yanick

  • Comment author was deleted

    Dec 12, 2016 @ 13:20

    Hi Yanick, maybe try setting the View param on your UIOMaticListViewField attribute to your custom view

Please Sign in or register to post replies

Write your reply to:

Draft