Fullscreen
[Show/Hide Right Column]

Data Channels


Data channels create a named pipe to run profiles from user space. One channel per line. Each line is comma delimited and contain channel name, domain, profile, allowed groups.

You use them with PluginDataChannel. Starting in Tiki6, a payment parameter can be added and thus, the data channel will only be run when the payment is done.


Please see:
http://profiles.tikiwiki.org/Data+Channels

A good example is http://profiles.tikiwiki.org/Project_Management

1. Usage with trackerfilter/trackerlists

The idea of it is to let you set up a trackerfilter/trackerlist with checkboxes, let the user select the ones they want, and then run a datachannel (profile) on each item.

Example:

Test page

1.1. Tracker list multi select tester

{trackerfilter filters="2/d:3/d:4/d" noflipflop="y" trackerId="1" fields="2:3:4:5" other_filters="1" checkbox="0/itemId" wiki="tracker checkbox test tpl"}

---

{DATACHANNEL(channel="test_channel" emptyCache="none")}
itemId,external=input[name='itemId[]']:checked
surname,external=input[name^='surname[']
forename,external=input[name^='forename[']
{DATACHANNEL}


Pretty tracker template: tracker checkbox test tpl

1.2. tracker checkbox test tpl


{if $checkbox}
{$item.field_values[$checkbox.ix].value|escape}
<input type="{$checkbox.type}" name="{$checkbox.name}[]" value="{if $checkbox.ix > -1}{$item.field_values[$checkbox.ix].value|escape}{else}{$item.itemId}{/if}" />{/if} __{$f_2} {$f_3} {$f_4}:__ {$f_5}
<input type="hidden" name="surname[{$item.itemId}]" value="{$f_3}" />
<input type="hidden" name="forename[{$item.itemId}]" value="{$f_4}" />



Note
You need is_html enabled and HTMLPurify off at the moment (as of August 2010) for the hidden inputs to work in this example. Could be replaced by {HTML} or some other plugins probably.




alias
data channel | datachannel | DataChannels

Contributors to this page: jonnybradley1111 points  and Marc Laporte8178 points  .
Page last modified on Monday 23 May, 2011 12:04:46 UTC by jonnybradley1111 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