Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vitaly Vasilega 62 posts 184 karma points
    Aug 14, 2015 @ 05:37
    Vitaly Vasilega
    0

    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:

    1. Save only the giud of the selected item.

    2. Save object in which there are giud and name

    Each method has its advantages and disadvantages.

    Which way is more correct?

    Thanks.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Aug 14, 2015 @ 07:04
    Dave Woestenborghs
    1

    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

  • Vitaly Vasilega 62 posts 184 karma points
    Aug 14, 2015 @ 07:51
    Vitaly Vasilega
    0

    Hi Dave.

    Thanks for the answer.

    All other information will have to get through DataTypeService?

    Thanks

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Aug 14, 2015 @ 08:34
    Dave Woestenborghs
    0

    You don't need the datatypeservice. This is for retreiving the information of the configured datatype in Umbraco.

    Dave

  • Vitaly Vasilega 62 posts 184 karma points
    Sep 07, 2015 @ 06:11
    Vitaly Vasilega
    0

    I don't quite understand.

    If we save only the guid, where developer will receive the data associated with that guid value (name)?

    Vitaly

Please Sign in or register to post replies

Write your reply to:

Draft