link

Add an edge between two resources. Used in the admin.

The edge is selected with either:

  • the argument edge_id
  • the arguments subject_id, predicate, object_id

For instance:

{% button
    text="Add"
    class="btn"
    action={
        link
        subject_id=id
        predicate="contains"
        object_id=other_id
        action={
            reload
        }
    }
%}

Other arguments:

  • element_id
  • edge_template
  • action - actions executed after linking

Edit on GitHub