Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1431 posts 3332 karma points c-trib
    Apr 16, 2010 @ 11:51
    Simon Dingley
    0

    Relationship API - Create relationships with id's from custom tables

    Is there any reason why the Umbraco Relationship API could not be used to create relationships between umbraco nodes and custom data?

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Apr 16, 2010 @ 12:37
    Richard Soeteman
    0

    Don't have a real answer to your question, but for CMSImport I've created a custom table and class to map the releation between the UmbracoNode and a custom database key (which can be anything).

    Cheers,

    Richard

  • Hendy Racher 861 posts 3844 karma points MVP 2x admin c-trib
    Apr 16, 2010 @ 12:46
    Hendy Racher
    1

    I don't see why not; it's just a key between two IDs, and I don't think there are any constraints to ensure those IDs belong to an object type as defined by the Umrbaco ObjectType GUID. Might be an idea to have a new GUID for custom data when defining the RelationType ?

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Apr 16, 2010 @ 13:16
    Simon Dingley
    0

    Hi Richard, my reason for asking the question is trying to avoid creating custom tables if the functionality I need already exists in the standard Umbraco install.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies