Copied to clipboard

Flag this post as spam?

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


  • SC Digital Services Team 104 posts 171 karma points
    Jan 31, 2014 @ 12:48
    SC Digital Services Team
    0

    Mutliple Textbox (Umbraco.MultipleTextstring) datatype

    Hello

    Has anyone had any success with accessing the data from this datatype?

    When looking in the umbraco.config file to see how the data is structured I see this:

    <categories><![CDATA[Advice
    Arts and crafts
    Book sales
    Books out loud
    Games
    Learning
    Local history
    Reading
    Writing]]></categories>
    

    Yet when I try to access it from a view using any of the usual methods such as...

    @Umbraco.Field("categories")
    

    or

    @Model.Content.GetProperty("categories").Value
    

    etc

    ... I get System.String[] returned back to the view.

    It looks like when calling the datatypes' value, the type is actually being returned instead of the value.

    Bug in the datatype?

    Many thanks.

  • SC Digital Services Team 104 posts 171 karma points
    Feb 03, 2014 @ 12:10
    SC Digital Services Team
    0

    Just noticed that this has already been added to the issue tracker - http://issues.umbraco.org/issue/U4-4166

Please Sign in or register to post replies

Write your reply to:

Draft