More in this section
Forums / Developing with Sitefinity / Generic Content - Customizing the Admin View

Generic Content - Customizing the Admin View

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. Will
    Will avatar
    23 posts
    30 Jun 2009
    02 Nov 2009
    Link to this post
    I am creating a custom module based on Generic Content. With its metadata fields, I want to control what values can be entered by the admin. Let's say my module is for Cars, and I have a metadata field for Make. I want to limit the admin to a list of makes such as Honda, Toyota, Ford, etc. I also need to manage this list, but I don't care if the list is controlled elsewhere, or if it is added "on-the-fly" when the user populates this field. Ideally the admin would select the make from a drop-down list. I see that the Events module has drop-downs for country and state, I'd like something similar.

    I'm wondering if there are any examples on how to customize the admin screen in this way.

    Sorry, if this question has been asked before. I've already found many posts regarding Generic Content and custom modules, and I'm trying to dig through all info. Thanks!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    03 Nov 2009
    Link to this post
    Hello Will Klein,

    In your custom template where you are adding the metakeys you can use DropDownList control and populate it with ListItems. You can do it programmatically( using DataSource property and DataBind method) or declaratively.


    <asp:DropDownList ID="Manufacturer" runat="server">
    <asp:ListItem Text="-- Select Manufacturer --" Value=""></asp:ListItem>
    <asp:ListItem Text="GM" Value="GM"></asp:ListItem>
    <asp:ListItem Text="Porcshe" Value="Porcshe"></asp:ListItem>

    There is a section in our UserManual - Adding Custom Fields

    Kind regards,
    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, 1 answered