Loading...
Use
Create
Develop
FAQ
Troubleshooting
History: Run Profiles From Plugin List Execute
View page
Source of version: 1
(current)
Added for Tiki 27+ ''(This page needs more info)'' This example uses items from a client list to create groups with [https://doc.tiki.org/Roles|roles] and a permissions category, linked to an initial tracker item. {CODE()}{LISTEXECUTE()} {filter type="trackeritem"} {filter field="tracker_id" exact="2"} {filter field="tracker_field_clientGroup_text" exact=""} {OUTPUT(template="table")} {column label="Client" translatelabel="y" field="titlelink" mode="raw"} {OUTPUT} {FORMAT(name="titlelink")}{display name="title" format="objectlink" mode="raw"}{FORMAT} {ACTION(name="Create Client Groups" default="y")} {step action="data_channel" channel="clientcreate, clientsetup" params="client_group_name:itemId" client_group_name_field="tracker_field_clientName" itemId_field="object_id"} {ACTION} {ALTERNATE()}^{TR()}All clients have been set up{TR}^{ALTERNATE} {LISTEXECUTE} {CODE} Where the data channel pages look like this: !!! clientcreate {CODE(caption=>YAML)}permissions: Client $profilerequest:client_group_name$Default$: include: [ ] Client $profilerequest:client_group_name$Default$ Account Managers: include: [ Clients Account Managers, Client $profilerequest:client_group_name$Default$ ] user_signup: y Client $profilerequest:client_group_name$Default$ General Staff: include: [ Clients Laboratory Staff, Client $profilerequest:client_group_name$Default$ ] user_signup: y {CODE} !!! clientsetup ''The file needs to be split up into two part so the groups created in the first part can have the permissions granted to them in the second.'' {CODE(caption=>YAML)} objects: - type: category ref: client_category data: name: Client $profilerequest:client_group_name$Default$ Content # the parent Id below is the Id of the existing ''Client Content'' container category. parent: 4 items: - [ file_gallery, $client_file_gallery ] - type: tracker_item ref: client_item data: tracker: 2 mode: update itemId: $profilerequest:itemId$0$ values: - [ clientGroup, Client $profilerequest:client_group_name$Default$ ] - [ clientControlCategory, $client_category ] permissions: Client $profilerequest:client_group_name$Default$: include: [ Clients Groups ] default_category: $client_category {CODE} !!! Notes: The data channels need to be set up in the profiles control panel: tiki-admin.php?page=profiles and look like: {CODE()}clientcreate, tiki://local, clientcreate, Admins clientsetup, tiki://local, clientsetup, Admins{CODE} Also note the use of -+$profilerequest:itemId$0$+- as the placeholder for the initial itemId from each row of the List Execute.
Menu
Featured profiles
Profiles in Wizard
Profiles Todos
Handlers
Profiles Tester
Admin
of this site
Current Profiles
state
alpha
beta
Not fully functional yet
release
Tiki version
24.x
27.x
28.x
29.x
Deprecated
type
Available in the Profiles Wizard (12+)
Featured profiles
Full profile (out of the box & ready to go)
Learning profile (to show off feature)
Long tail
Mini-profile (can be included in other)
Profile-snippet (optional but needs another "parent" profile)
Security
Tests
Latest Changes
Profile Developer Documentation
Run Profiles From Plugin List Execute
JonnyBs_Luxury_Tiki_Setup
CartoGraf_Map
CartoGraf
CartoGraf_FR_Map
Test_all_tracker_field_types_profile
CartoGraf_MapCanvasEmpty
CartoGraf_MapCanvasShare
Cartograf_MapCanvasSolo
CartoGraf_Setup
CartoGraf_HomePage
CartoGraf_FR
CartoGraf_15
Custom Repository
Welcome to Tiki Profiles
Test_All_Modules_A_to_F
Test_All_Modules
Test_All_Modules_Q_to_Z
Test_All_Modules_G_to_P
...more
Like almost all *.tiki.org sites, you can log in with your login from
https://tiki.org
(register over there)
Search
Find
Most Popular Tags
admin
agenda
alias
antibot
antibot captcha
app
archive
articles
banning
batch
blogs
calculations
calendars
cart
categories
cluster
codemirror
comments
computation
contact us
datachannel
debug
debug console
dropdown with other
error messages
features
file galleries
forums
geo
geocms
geolocation
group homepages
group watches
header
i18n
images
item link
items list
jquery
languages
location
map
maps
maths
menu
menupage
multilingual
ol3
ol5
openlayers
paypal
plugin
plugin alias
plugin datachannel
plugin fade
plugin tabs
plugin trackerlist
pretty trackers
print
project management
r
r project
realnames
rss
static
static text
statistics
stats
structures
syntax highlighter
tablesorter
template
trackers
user watches
visualization
watches
webservice
wiki
wiki argument variables
wiki structures
Tiki Newsletter
Subscribe to the Tiki newsletter.
Don't miss major announcements and other news!