Selective Content Picker Options
ZCaotica
Posted: Saturday, June 14, 2008 9:59:00 PM

Rank: Newbie

Joined: 6/1/2008
Posts: 7
Location: Roma
Hi

I need a Data Type like the Content Picker (or like the Dropdown) but that allow the editors to select items only from a specific node in my content tree.
(or from specific Document Type)

is there a control or i must write it ?

Ciao da Zeta


Ciao da Zeta
drobar
Posted: Saturday, June 14, 2008 10:26:02 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,758
Location: KY, USA
Christian Palm's Multiple Content Picker let's you specify the starting node in your content tree, and doesn't allow them to browse down into sub-directories. Sounds like exactly what you want...except that they can select multiple items. You can either use it as-is and only use the first item selected, if the user selects more than one item, or you could modify the source to limit it to a single selection.

It started out for umbraco v2 and has been updated since. I've used the update by Morten with good success. I'm not sure if Ismail's update is based on CPalm's original code or Morten's update.

Multiple Content Picker (aka, Multiple page picker via source)
http://www.cpalm.dk/blog/2006/03/29/multiplepagepickerviasource.aspx
Updated by Morten, June 2007:
http://www.mortenbock.dk/updated-cpalm-multiple-page-picker-for-v3-bugfix-57.htm
Updated by Ismail, August 2007:
http://ismail.umbraco.net/2007/8/31/update-to-multiplepagepickerviasource.aspx

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
ZCaotica
Posted: Sunday, June 15, 2008 9:58:19 AM

Rank: Newbie

Joined: 6/1/2008
Posts: 7
Location: Roma
Thank Drobar

I saw their source code and I understand how to use the umbraco.cms.businesslogic.web.Document.
I like it very much.

I saw that they use property description to store the id of node source.

is there an alternative?

I like to do samethink like the Mass Mailer data type.
It has 3 properties in the config page to specify component data. (like sender info).

can i do this ?
what is the dll where i can find the MassMailer?

two more question:

1) what is the difference between write a UserControl and a DataType?

2) I click on Misc forum but i can't see my topic. why ?

thank you again.


Ciao da Zeta
ZCaotica
Posted: Sunday, June 15, 2008 11:41:44 PM

Rank: Newbie

Joined: 6/1/2008
Posts: 7
Location: Roma
I do it Applause

I spent all the day to make my first DataType but I am happy now :)

I studied the core library and the database and I know them better than before now :D

I have same question but I can't write it now.



Ciao da Zeta
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.