Fullscreen
[Show/Hide Right Column]

Create a button a user can use to add or remove a relation between objects

Plugin AddRelation

Introduced with Tiki8

Use this wiki plugin to display a simple button that toggles (i.e. adds or removes) a pre-specified relation.

Usage

Plugin
{ADDRELATION(qualifier= , source_object= , target_object= , label_add, label_remove= , button_id= )}{ADDRELATION}

Parameters

Required parameters are in bold
Preferences required: wikiplugin_addrelation
Parameters Accepted Values Description Default Since
qualifier attribute_type Relation qualifier. Usually a three part string separated by 2 periods. Array 8.0
source_object text Object identifier as type:itemId to start the relation from, will use the current object if left blank. 8.0
target_object text Object identifier as type:itemId to end the relation to, will use the current object if left blank. 8.0
label_add text Text to show on the button to add relation Add Relation 8.0
label_added text Text to show on the button when relation is already added Relation Added 8.0
label_remove text Text to show on the button to remove relation Remove Relation 8.0
button_id text A unique ID to distinguish the button from others on the page if there is more than one 0 8.0






Contributors to this page: lindon137 points  and Nelson810 points  .
Page last modified on Monday 23 January, 2012 03:25:57 UTC by lindon137 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki