Loading...
 
Skip to main content
Add a link formatted as a button

Plugin Button

Use this wiki plugin, introduced in Tiki6.1, to show links 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.

Since Tiki18 it is possible to fully style your button using the parameter "none" for the type. The button plugin comes with default type ready to use and if not set the btn-primary style/type will be used. Setting this parameter cancel any btn- default style from bootstrap (ie:btn-primary). Once set to none you cam fully customize your button using your own style.

Since Tiki19 it is possible to display only an icon without label (text). See example below.

Parameters

Plugin Manager error: button plugin not found

Example

Use a url parameter, icon and danger type

This code:

Copy to clipboard
{button href="Home?itemId=" _text="Go there" _type="danger" _icon_name="wrench"}

Would produce on this site:
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

This code:

Copy to clipboard
{button href="HomePage" _rel="box" _text="Go there"}

Will create a button that opens the HomePage in a colorbox:

Go there

Button bar without text

Since Tiki 19, this code:

Copy to clipboard
{button href="HomePage" _icon_name="home" _type="primary"} {button href="Edit" _icon_name="pencil" _type="primary"} {button href="Delete" _icon_name="trash" _type="danger"}

Will create a set of buttons with icons only:

Button that opens the href URL content in a modal with custom redirect once submitted

Since Tiki 20.2, this code:

Copy to clipboard
{button href="HomePage" _class="click-modal" data="modal-submit-redirect-url=/success-page"}

Will load the href URL in a modal, and redirect to the URL given in the data attribute once the form (if any) within the modal is submitted.

Create a button with your own color (style)

Setting parameter type to none allow full customization using your own style for a button. (it remove default btn-xxx style)
Using this code

no style applied
Copy to clipboard
{button href="#thispage" _text="This is a button from type : none" _type=" "}

Will display this (a button without any style)
This is a button from type : none

Test

Copy to clipboard
{button href="((HomePage))" _text="Go there"}

Go there

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

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

Accessibility (WAI and 50😎
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

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