Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 372 posts 608 karma points
    Sep 02, 2010 @ 17:24
    Brendan Rice
    0

    How do I read Macro properties from a custom DataType

    I am trying to create a help system that lets the user content manage help text on UserControls/Macros.

    The way I seen this working was:

    1. On each user control I expose proerties that start with Help_
    2. I create a macro and load the properties for the User Control
    3. I create a custom DataType that loops through the Help_ properties from the macro and creates Labels and Textboxes to capture the input text for each property e.g.

      For Help_FirstName I would create a label "First Name" and related textbox.

    4. When the page is saved I would loop through the Help DataTypes and create a dictionary for key value pairs that gets saved to Umbraco.

    What I am struggling with is how to read Macro properties from a page in the DataType can this be done and if so how?  Is there a better way of going about the help system?

  • 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