Anyone managed to package dictionary items? Options
Anders
Posted: Tuesday, March 04, 2008 8:47:34 AM

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
drobar
Posted: Tuesday, March 04, 2008 4:05:03 PM

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
neehouse
Posted: Tuesday, March 04, 2008 8:56:27 PM

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 •
Anders
Posted: Tuesday, March 04, 2008 8:57:53 PM

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
Anders
Posted: Tuesday, March 04, 2008 8:58:51 PM

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
neehouse
Posted: Tuesday, March 04, 2008 9:19:20 PM

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 •
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.