Copied to clipboard

Flag this post as spam?

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


  • joju 7 posts 27 karma points
    Dec 29, 2010 @ 09:24
    joju
    0

    custom hyperlink control in contour

    hi there, i'm trying to add a hypelink control to contour but the problem is the  generated html tag seems to get encoded when it is rendered on the page... also what's appearing is just this... < id="ctl00_ctl00_ctl00_ContentPlaceHolderDefault_BrinkMasterContentPlaceHolder_RenderForm_9_rpFieldsets_ctl00_rpFields_ctl10_c4436d94_913f_4529_9b91_fd4071e1c619" href="usercontrols/umbracoContour/#"> gdfgdfgdfg

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Dec 29, 2010 @ 09:35
    Ismail Mayat
    0

    joju,

    How exactly are you adding the hyperlink control, are you modifying the renderform ascx ?

    Regards

    Ismail

  • joju 7 posts 27 karma points
    Dec 29, 2010 @ 09:42
    joju
    0

    i've added a custom fieldtype by adding this class as stated in contour's developer docs

     

    public class UmbracoContourAnchor:FieldType
        {
            public System.Web.UI.WebControls.HyperLink hl;
            public List

     

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Dec 29, 2010 @ 09:54
    Ismail Mayat
    0

    Where you have line

     hl.NavigateUrl = NavigateUrl;

    just for now try and hardcode a url there e.g "http://www.yahoo.com" what do you get?

    Regards

    Ismail

  • joju 7 posts 27 karma points
    Dec 29, 2010 @ 09:57
    joju
    0

    same thing... < id="ctl03_rpFieldsets_ctl00_rpFields_ctl11_bdae1ca2_3470_4a1b_b20a_fa3c83ebd330" href="http://www.yahoo.com"> adasdasd

     


    adasdasd is the innertext or text attribute of the hyperlink control

  • 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