How can i create a data type Options
sajith
Posted: Wednesday, July 09, 2008 7:32:43 AM
Rank: Devotee

Joined: 4/22/2008
Posts: 62
Location: Dubai

Hi, how can i develop a data type and use it...


Sajith.
Dirk
Posted: Wednesday, July 09, 2008 8:34:37 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,136
Location: Belgium
Hi sajith,

Have a look at the article tim wrote on his blog. It should get you started.

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
sajith
Posted: Wednesday, July 09, 2008 12:08:46 PM
Rank: Devotee

Joined: 4/22/2008
Posts: 62
Location: Dubai
Hi Dirk,

Can u please send me a sample for creating a dropdownlist with some values in it.


something like sortby or sortOrder

Sajith.
Dirk
Posted: Wednesday, July 09, 2008 12:28:36 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,136
Location: Belgium
Hi sajith,

Don't exactly understand what you're after. Could you give some more background info?

If you just want to create a dropdown with prevalues, just create a new datatype:

- Choose an appropriate name, choose 'Dropdown list' as render control, and hit the 'Save' icon
- After saving, you can set the database type and add some prevalues.

Greetz,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
sajith
Posted: Wednesday, September 10, 2008 7:22:28 AM
Rank: Devotee

Joined: 4/22/2008
Posts: 62
Location: Dubai
Hi Dirk,

I'm trying to create a file uploader which converts .mpeg or .wmv files to .flv files and upload in some location.

While creating a datatype do we need to upload the details (about the file uploaded using the datatype) to database. i mean when using that datatype to upload a file in a node... or Will umbraco take care of that ??

Sajith.
Dirk
Posted: Wednesday, September 10, 2008 9:03:12 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,136
Location: Belgium
Hi sajith,

All depends on your own imagination. How do you want to store all files (I guess in the media section, right?). As a new media type? Or existing media type (File for example)

Based on the info you'd wish to save, you'd go for the existing media type or create a custome one (you decide what properties will/won't be saved then).

You'll still need to code the logic for uploading/creating the new media and adding it to the media section.

Hope that helps.

Regards,
/Dirk




level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.