|
|
Rank: Devotee
Joined: 5/5/2007 Posts: 47
|
Hi All, Just giving back... I don't know if anyone is interested, but I have had a repeated need to show a list in a document type, such as a list of towns, cities, clients, etc. I needed to have an updatable list so that my clients can manage it themselves. Rather than create a fixed list I wanted to have a "reference" section of the content tree where I could create pages and sub pages that have all the lists that I need. The "reference" section would of course never be published. I've now created such a render control that can be used to build new data types as outlined above. The new render control is called ed.ListFromContent which has the following options: - Root Content Id - the parent of the items to be in the list - Multi-Select - should the list be multi or single select Thus I can now create new data types to apply to the document types that supply simple lists that the client can easily update by adding to the "reference" section of the content tree. If anyone is interested the DLL for the Render Control it can be downloaded from: http://www.essence-design.co.uk/umbraco/ed.ListFromContent.zipJust copy the files to the bin directory and then you can create new data types simply and easily. No doubt this functionality is already out there under a different name, but I could not find it after a good long search. I hope that this helps someone out. Any comments, bugs and feedback, please let me know via this forum posting. Cheers to all Steve Web Site Design - Essence Design
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
Steven, Thanks for contributing to the community. It may also be useful to have a similar control to list out information from the media section. Thanks Casey
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
Rank: Newbie
Joined: 8/1/2007 Posts: 1
|
This Data type has been a great help to me in the v2.0 of Umbraco. It appears that it is impatible with Umbraco v3.0. Any chance there is an update, or source is available? I think it's a .Net 2.0 thing.
|
|
Rank: Devotee
Joined: 5/5/2007 Posts: 47
|
Hi Shawn, I'm happy you like it and are getting some use out of it. It works fine for me in V3, so I don't know what the issue is. However we are only using it in a V3 RC1 site at the minute. It is coded in ASP 2.0 (not used 1.whatever in years now). Anyhow, the link below is a download for the code. It's based on a mix of CPalm's work and looking through the source code in Umbraco itself. http://www.essence-design.co.uk/umbraco/ed.ListFromContent.zipIf you make any changes, please let me know and I'll update my version and update the download. Have fun Cheers Steve Web Site Design - Essence Design
|
|
Rank: Enthusiast
Joined: 8/13/2007 Posts: 39 Location: Sydney, Australia
|
This is a brilliant control that i can use in my site, however, i've had to make a small fix. Without this fix, the admin section throws an error when you try to change to another datatype from the ed.ListFromContent datatype.
THIS NEEDS TO BE ADDED IN THE setupChildControls() METHOD UNDERNEATH THE _checkBoxMultiSelect = new CheckBox(); LINE. WE JUST NEED TO ASSIGN AN ID, OTHERWISE IT TELLS US THAT THERE IS ALREADY A CONTROL WITH ID ctl01 WHICH IS AUTOMATICALY CREATED BY DEFAULT.
_checkBoxMultiSelect.ID = "chkListFromContent";
Hope this helps someone.
Cheers!
|
|
Rank: Devotee
Joined: 9/7/2007 Posts: 32
|
Hi Steven,
I have just installed the dll to the bin directory from the download but the new render control does not show up in the list of options when creating a new data type.
Using v3.0.2
Am I missing something?
|
|
Rank: Devotee
Joined: 9/14/2007 Posts: 86
|
Hi All I am using umbraco 3.0.2 and the control is not show up too... Is there any thing wrong for this umbracos version? all the best Wesley Bruce Buxton wrote: Hi Steven,
I have just installed the dll to the bin directory from the download but the new render control does not show up in the list of options when creating a new data type.
Using v3.0.2
Am I missing something?
Wesley Willians - wesley.blog.br
|
|
Rank: Devotee
Joined: 9/14/2007 Posts: 86
|
Hi All,
I am trying to create a new datatype to see that it show up but nothing too.
It there any different way to do that?
Wesley Willians - wesley.blog.br
|
|
Rank: Devotee
Joined: 5/5/2007 Posts: 47
|
Hi, If you use the link above to download the source and recompile it against 3.0.2, or 3.0.3 as we now have, then it should work fine. I've not had time to look at the additional fix mentioned above, but you might find that this helps as well. Any problems, please let me know. Cheers Steven Web Site Design - Essence Design
|
|
Rank: Devotee
Joined: 9/14/2007 Posts: 86
|
Hi Steaven,
First of all thank for you help.
I have recompiled it again in 3.0.3 but didnt work. Do you have any other tip?
Thanks
Wesley Willians - wesley.blog.br
|
|
Rank: Devotee
Joined: 9/14/2007 Posts: 86
|
OK Steven,
I have done! Now its OK!
Wesley Willians - wesley.blog.br
|
|
Rank: Devotee
Joined: 9/7/2007 Posts: 32
|
Hi Wesley,
Could you please explain what you did to get it to work, and/or post a link to the updated dll.
Thanks, Bruce
|
|
Rank: Devotee
Joined: 9/14/2007 Posts: 86
|
hello Bruce, I have posted it in my blog. I hope it works for you! http://wesley.blog.brBruce Buxton wrote: Hi Wesley,
Could you please explain what you did to get it to work, and/or post a link to the updated dll.
Thanks, Bruce
Wesley Willians - wesley.blog.br
|
|
Rank: Devotee
Joined: 9/7/2007 Posts: 32
|
Thanks Wesley, seems to work fine in v3.0.2 as well!
|
|
|
Guest |