Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi everyone.
I am developing a Taxonomy module for umbraco v 7.2.
When creating Taxonomy Data Type, I keep a tree structure which has a guid and name.
When I place this type in the Document Type and create pages based on this Document Type, I can save selected items in several ways:
Save only the giud of the selected item.
Save object in which there are giud and name
Each method has its advantages and disadvantages.
Which way is more correct?
Thanks.
I would store only the guid. If you also store the name you will need something to update all documents where it is used when somebody changes the name of the item.
Dave
Hi Dave.
Thanks for the answer.
All other information will have to get through DataTypeService?
Thanks
You don't need the datatypeservice. This is for retreiving the information of the configured datatype in Umbraco.
I don't quite understand.
If we save only the guid, where developer will receive the data associated with that guid value (name)?
Vitaly
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Correct data storage
Hi everyone.
I am developing a Taxonomy module for umbraco v 7.2.
When creating Taxonomy Data Type, I keep a tree structure which has a guid and name.
When I place this type in the Document Type and create pages based on this Document Type, I can save selected items in several ways:
Save only the giud of the selected item.
Save object in which there are giud and name
Each method has its advantages and disadvantages.
Which way is more correct?
Thanks.
I would store only the guid. If you also store the name you will need something to update all documents where it is used when somebody changes the name of the item.
Dave
Hi Dave.
Thanks for the answer.
All other information will have to get through DataTypeService?
Thanks
You don't need the datatypeservice. This is for retreiving the information of the configured datatype in Umbraco.
Dave
I don't quite understand.
If we save only the guid, where developer will receive the data associated with that guid value (name)?
Vitaly
is working on a reply...