5 votes

DropDown with Sql Source

This datatype provides a dropdown with customizable source.

You can use this if you need to choose from a list with data from the database in a content page.

I needed to choose one customer from the company list of customers. 

Installation

Download the dll, upload it into your bin folder, add a new datatype and choose DropDownWithSqlSource as Render control. Save and enter the sql query. Add this datatype to a Document Type. In the Content page, you'll see a dropdownlist filled with the results of the sql query.

If you want to cache the items, download the source code and uncomment the lines from 45 to 55 in DropDownWithSource,cs file.

It works in Umbraco 4.5.

 

Version 1.1 has new features:

- Supports mandatory properties.

- The database type can be chosen.

 

Screenshots

Archived files

Documentation

Package owner

Mirela Budaes

Mirela Budaes

Mirela has 94 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Mirela Budaes
  • Created: 08/06/2010
  • Current version 1.1
  • License MIT
  • Downloads on Our: 1.2K

External resources