Copied to clipboard

Flag this post as spam?

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


  • jacob phillips 130 posts 372 karma points
    Jan 28, 2015 @ 06:20
    jacob phillips
    0

    Create a Media Relation

    I have an existing database with tables umbracoRelation and umbracoRelationType with lots of relations already stored.

    Next step, I want to get these to show up in this Relation Editor.

    Obviously, I need to set up the config, but I can't tell from the readme file if this is correct. I created a new relation type and edited the config and it works.

    Now I have an existing Relation Type defined in Developer with Alias "PrimaryImage"

    I also have a document type with Alias "story", here's my config:

    <RelationEditor>
      <ObjectType Name="Document" Alias="story">
        <EnabledRelation Alias="storyRelation">
          <EnabledChildType Alias="story"/>
        </EnabledRelation>
      </ObjectType>
      <ObjectType Name="Document" Alias="story">
        <EnabledRelation Alias="PrimaryImage">
          <EnabledChildType Alias="Image"/>
        </EnabledRelation>
      </ObjectType>
    </RelationEditor>
    

    But nothing is showing up in the context menu for "PrimaryImage" when I edit relations.

    What am I missing?

  • jacob phillips 130 posts 372 karma points
    Jan 28, 2015 @ 06:26
    jacob phillips
    100

    aha, I got it....

    <RelationEditor>
      <ObjectType Name="Document" Alias="story">
        <EnabledRelation Alias="storyRelation">
          <EnabledChildType Alias="story"/>
        </EnabledRelation>
        <EnabledRelation Alias="PrimaryImage">
          <EnabledChildType Alias="Image"/>
        </EnabledRelation>
      </ObjectType>
    </RelationEditor>
    
  • 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