More in this section

Forums / Developing with Sitefinity / Boolean metadata

Boolean metadata

2 posts, 0 answered
  1. Mark Schulze
    Mark Schulze avatar
    1 posts
    Registered:
    22 Jul 2009
    24 Sep 2009
    Link to this post
       Some progress - I can now add new short text / long text metadata fields to the admin side of the site, persist and retrieve that data.  
        Now I want to do the same with boolean data: I want to put a checkbox on the news item page, and persist and retrieve its checked value.
       Can it be done?  How?

    Thanks in advance,
          Ben
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Sep 2009
    Link to this post
    Hi Mark Schulze,

    You need to create a new metakey of type Boolean. Then declare CheckBox control with the same ID as your metakey.

    <add key="Events.BoolValue" valueType="Boolean" visible="True" searchable="True" sortable="True" defaultValue=""/> 


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered