Copied to clipboard

Flag this post as spam?

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


  • Thijs 97 posts 117 karma points
    Oct 13, 2011 @ 16:56
    Thijs
    0

    Get the parent of the usercontrol

    Hi

    I'm quite new to Umbraco, I searched this forum and Google but I didn't really found an anwser to my question. For example, My TextPage document type has an bodyText attribute. Is it possible to add a usercontrol to that page that first reads the bodyText attribute en could automatically modify it?

    Any help would be greatly appriciated!

    Thijs

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Oct 13, 2011 @ 17:41
    Dan Diplo
    0

    Yes, it is possible you need to look at using the Umbraco Document API In particular, see this:

    http://our.umbraco.org/wiki/reference/api-cheatsheet/modifying-document-properties

     

  • Matt Barlow | jacker.io 164 posts 727 karma points c-trib
    Oct 13, 2011 @ 17:44
    Matt Barlow | jacker.io
    0

    Hey Thijs,

    Have you checked the starter guides on Umbraco TV?

    http://umbraco.com/help-and-support/video-tutorials/introduction-to-umbraco/developer-introduction/using-net-user-controls.aspx

    Sounds to me like you are trying to pass bodyText attribute into a macro which wraps an ASP.net user control.

    The above tutorials should help,

    Matt

     

     

  • Thijs 97 posts 117 karma points
    Oct 14, 2011 @ 09:13
    Thijs
    0

    Ok thanks I figuered it out!

  • Thijs 97 posts 117 karma points
    Oct 14, 2011 @ 09:14
    Thijs
    0

    Sorry for double post..

  • 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