SNiPTT stands for Social Networking in Pretty Tiki Trackers. This profile is intended to help with building a Social Networking website based mainly on the powerful Tiki Trackers feature.
Global Preferences
YAML
preferences: # alphabetically sorted
allowRegister: y # Allow users to create new accounts
feature_mytiki: y
feature_userPreferences: y
userTracker: y
validateUsers: n # This is slowing us down as we build the profile
This profile applies two trackers.
User Profile Tracker
YAML
preferences:
feature_trackers: y
objects:
-
type: tracker
ref: user_profile_tracker
data:
name: User Profile
description: Additional information about users
default_status: open
#allow: [creator_modification, one_user_item] #one_user_item is just a guess, no idea if it is supported already
allow: creator_modification #allow users modify their items
hide_list_empty_fields: y
show: [creation_date, modification_date, list_modification_date ]
sort_default_order: asc
-
type: tracker_field
ref: user_name
data:
name: User Login Name
tracker: $user_profile_tracker
type: user
flags: [searchable, public, link, list, mandatory]
options: 1
order: 10
-
type: tracker_field
ref: real_name
data:
name: Real Name
tracker: $user_profile_tracker
type: preference
flags: [searchable, public, list]
options: realName
order: 20
-
type: tracker_field
ref: nick_name
data:
name: User Nick
tracker: $user_profile_tracker
type: text_field
flags: [searchable, public]
order: 30
-
type: tracker_field
ref: welcome_name
data:
name: Welcome Name
tracker: $user_profile_tracker
type: text_field
flags: [searchable, public]
order: 40
User Posts Tracker
YAML
preferences:
feature_trackers: y
objects:
-
type: tracker
ref: user_posts_tracker
data:
name: User Posts
description: User posts for "micro-blogging" purposes
default_status: open
allow: [comments, creator_modification]
hide_list_empty_fields: y
show: [creation_date, modification_date, list_modification_date ]
sort_default_order: asc
-
type: tracker_field
ref: user_post_username
data:
name: User Login Name
tracker: $user_posts_tracker
type: user
flags: [searchable, public, link, list, mandatory]
options: 1
order: 10
-
type: tracker_field
ref: user_post_body
data:
name: Post Body
tracker: $user_posts_tracker
type: a
flags: [searchable, public, mandatory]
options: 1,80,4,1024,1024
order: 20
First we make sure Wiki feature is on and set up other wiki related preferences used by this profile:
YAML
preferences:
feature_wiki: y
feature_wiki_argvariable: y # we are gonna use arg variables in our wiki page templates like {{foo}} (its value will be filled from URL param &foo=bar)
This Wiki page template will be used by Tracker wikiplugin to display a form to post/edit a User Post:
YAML
objects:
-
type: wiki_page
ref: edit_user_post_tpl_wiki_page
data:
name: Edit User Post template
content: wikicontent:SNiPTT_Edit_User_Post_template
Wiki page with posts by myself or by a specified user (when &tr_user=foo is present in URL):