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:
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}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}" />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.
data channel | datachannel | DataChannels
