unlink
See also
Remove 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="Remove"
class="btn"
action={
unlink
subject_id=id
predicate="contains"
object_id=other_id
action={
reload
}
}
%}
Other arguments:
hide - selector to fade out after unlink
edge_template - passed on to the undo action template
action - actions executed after unlink
undo_action - passed on to the undo action template
undo_message_id - defaults to unlink-undo-message
After update, an undo message is rendered in the undo_message_id target, with the template _action_unlink_undo.tpl
.
Todo
Extend documentation