|
|
 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
I'm putting together a package and need to add some dictionary items also. Anyone done this before and can give the correct syntax for adding those in the package.xml file?
Or doesnt Umbraco support dictionary items?
Umbraco Certified Professional
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,831 Location: MA, USA
|
The current version of the package creator doesn't support dictionary items. Hopefully a future version will add that ability. cheers, doug.
MVP 2007-2009 - Percipient Studios
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
The package.xml file does not directly support it, however, you can write a user control that uses the API to install the dictionary items for you. May want to give that method a try.... Case
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
Yeah, I know hopefully it will be added. But I'm talking about when you creat your own packages with out the package creator. I manually hack the package.xml file to get exactly what I want as package creator doesnt support "dictionary" on properties and tabs and such.
If dictionary items can be added using the package.xml file it would be great, otherwise I have to run a user control that will add them thru "code behind"...
/Anders
Umbraco Certified Professional
|
|
 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
Ok, didnt see your message before I posted. Will work out a solution with the api and a seperate xml file for dictionary.
Umbraco Certified Professional
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
There is a catch to supporting the Dictionary items. If the user has not defined a language, the item can not be added for that language. Also, what do you do when a language is defined, but not entry exists. This is probably why they were not implemented. Case
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
|
Guest |