|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
Hi, is there a way to link the autoform to a dictionary item ? The Name of the property is being displayed, but I want something different for each language
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
I took a look at the code and there was no link with dictionary items. So i adjusted it a little, if there is a dictionary item with the name of the property it displays the dictionary item.
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
I may be totally wrong here, but I believe if you name your document type properties (in v.3) with "#term", it will look up the dictionary item. I think AutoForm and AutoFormPlus will work the same way, as it is derived from the same logic as the core code.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
Well i downloaded the source from codeplex ( May 20 at 10:58 AM ) and there was no link with dictionary items in there. Maybe in a later version.
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
I'll be glad to add the functionality to the project, how can i join the project on codeplex ?
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
OK, I tested the above.. In v.3, if you use the #item syntax in the property's name field for the document type, the value will show up on Autoform (Plus is the version I used). However, it does not seem to work in the admin area, probably due to me having the wrong culture being set on the user. This is handled in the lower levels of the code, and is somewhat difficult to find, but it is part of the property type class.... example: http://lb1.ourdevsite.com/ "test 123 from dictionary" is from the dictionary item... also, the required text will resolve with a #item approach, default being #required.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
oops.. the required text should resolve.. must have a bug.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
and i you set the property mandatory, is the error text correct ?
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
I went in and changed the language for the user to my culture, and everything started working in the back-end as well...
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
Tim Geyssens wrote: Well i downloaded the source from codeplex ( May 20 at 10:58 AM ) and there was no link with dictionary items in there. Maybe in a later version.
Which source (umbraco or Autoform)? I can get you into the extension side of things, but Niels will have to get you into the other...
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
Great, good to know this is possible. Thanks for the help Casey, maybe you know this to: is it possible to use global/local resources ?
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
Casey Neehouse wrote:Tim Geyssens wrote: Well i downloaded the source from codeplex ( May 20 at 10:58 AM ) and there was no link with dictionary items in there. Maybe in a later version.
Which source (umbraco or Autoform)? I can get you into the extension side of things, but Niels will have to get you into the other... Autoform, so the extensions
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
send me your codeplex username.... casey@neehouse.com
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
I made several minor changes and bug fixes to AutoFormPlus. Changes: Some minor layout changes and CSS related changes • added a required class to list item tag for properties that are required. • moved the class name for the editor control from the label to the list item. • changed required text container from a paragraph to a label to match the actual text. this will free the description to be the only p tag. New properties • HideTabNames - removes the legend of the tab name. • FormSubject - you can customize the subject of the form email now. • FormMessage - you can customize the message of the form email now. • ResponseCopyTo - you can (blindly) copy your Response message to other users now. • NextButtonText - you can change the text on the button (supports dictionary lookup) • PreviousButtonText - you can change the text on the button (supports dictionary lookup) message tags. Now work for both Response Message and Form Message fields • [#URL] - the url of the page the form was submitted from (and the generated id) • [#FORM] - the output of the form in a roughly structured format. • [property] - the form property alias (case sensitive). Improved Dictionary support (default dictionary items) • Thank you message (#thanks) • Response Message (#response) • Response Subject (#subject) • Required text (#required) • Title label (#title) • Next Button (#next) • Previous Button (#previous) • Submit Button (#submit) Tab Names do not work with autoform when using the dictionary due to the means in which the tabs are specified. Thus, the work around for now is to hide them. I will try to write up some more detailed instructions soon..
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
OK, I have corrected a few bugs, and think most everything is stable now. I am testing things a bit more thorough this time round (rushed the changes for the last go round)... Feel free to test if you like.. http://www.codeplex.com/umbracoext/Release/ProjectReleases.aspxAnd Tim, I have granted you rights...
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
|
Guest |