Loading...
 
Show or hide tracker content

Plugin TrackerToggle

Introduced in Tiki7

This wiki plugin utilizes jQuery to toggle the visibility of an HTML element (like a div) depending on the value of a field. This plugin can be used in Pretty trackers. This plugin permits Display logic.

Parameters

Introduced in Tiki7. Required parameters are in bold.
Preferences required: wikiplugin_trackertoggle, feature_jquery, feature_trackers
Parameters Accepted Values Description Default Since
id text HTML id of the element that is toggled 7.0
value text Value to compare against. 7.0
fieldId digits Numeric value representing the field ID tested. 7.0
visible (blank)
y
n
Set whether visible when the field has the value. n 7.0
itemId digits Use the field of specific item. The URL param itemId is used if this parameter is not set. 0 7.0



Note

  • Category needs categId not categName to match
  • If you use a field more than once in a template (e.g., {$f_180} ) only the first one on the page will be functional
  • Only one plugin TRACKER of the same trackerId may appear on the page
  • Only fields with a text value or checkbox (y/n) are functional prior to Tiki11

Examples

This code will show the div 'value' only if the field 183 has the value tiki. When the field is not set yet, the div is not displayed
{DIV(id="value")}The value div{DIV}
{trackertoggle fieldId="183" value="tiki" visible="y" id="value"}
Value: {$f_183}


This code will show the div 'checkbox' only if the checkbox is checked. When the box is not checked, the div is not shown
{DIV(id="checkbox")}The checkbox div{DIV}
{trackertoggle fieldId="180" value="y" visible="y" id="checkbox"}
Checkbox: {$f_180}


Will show the div until the checkbox is checked.
{DIV(id="checkbox")}The checkbox div{DIV}
{trackertoggle fieldId="180" value="y" visible="n" id="checkbox"}
Checkbox: {$f_180}

doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

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

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
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 8.x
Draw 7.x
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, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
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 (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

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