Fullscreen
[Show/Hide Right Column]

Add a link formatted as a button

PluginButton

In tiki since Tiki6.1, it allows links to easily be shown as buttons, while allowing Wiki Argument Variables (e.g. ) to be used without the need of an admin to re-validate the plugin call each time (as it has to be done if you use for such task the generic PluginSmarty, each time a new itemId is passed in the url to the wiki page containing the plugin).

This is specially useful in cases of custom workflows using trackers and wiki pages with tracker plugins to insert data, edit it afterwards, etc., and showing those links as buttons.

Parameters

Required parameters are in bold
Preferences required: wikiplugin_button
Parameters Accepted Values Description Default Since
href url URL to be produced by the button. You can use wiki argument variables like in it
_class text CSS class for the button
_text text Label for the button


Example

{BUTTON(href="Home?itemId=",_text="Go there")}{BUTTON}


Will produce a button with the "Go there" as label, and the wiki argument variable replaced by the itemId passed in the url of the page where this plugin button is located:

Go there

tipTip

The parameter (ur<x>l-attribute) _rel="box" works aswell:

{BUTTON(href="HomePage",_rel="box",_text="Go there")}{BUTTON}


willcreate a button that opens the ))HomePage(( in a colorbox:

Go there







Contributors to this page: Torsten Fabricius1845 points  , carsten.aevermann1138 points  and xavi67984 points  .
Page last modified on Saturday 19 May, 2012 16:50:54 UTC by Torsten Fabricius1845 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