Loading...
 
Skip to main content

History: User_Profile

Source of version: 13 (current)

Copy to clipboard
            -=About=-
Applying this profile will extend the existing Tiki users' preferences by setting up a basic ''User Profile'' page and [https://profiles.tiki.org/User_Tracker|User Tracker] to store information with the following fields:
*User name (user selector type field, mandatory)
*E-mail (e-mail user preference field, mandatory)
*Avatar (static field)
*About (text area)

!! Dependencies
It has the following dependencies:
{CODE(caption=YAML)}
dependencies:
 - $profiles.tiki.org:User_Tracker_email_user_field:email_user
 - $profiles.tiki.org:User_Tracker_avatar_field:avatar_icon
 - $profiles.tiki.org:User_Tracker_about_field:about_the_user
{CODE}

!! Instructions page
{CODE(caption=YAML)}
instructions: User Profile Applied&success=y
preferences:
  feature_wiki: y
  wikiplugin_param: y
objects:
  -
    type: wiki_page
    ref: User_Profile_instructions
    data:
      name: User Profile Applied
      lang: en
      content: wikicontent:User_Profile_instructions_redirect_page
{CODE}

!! User Profile page
{CODE(caption=YAML)}
preferences:
 feature_wiki_argvariable: y # we use the argument variables in referenced pages below
 urlOnUsername: tiki-index.php?page=$profileobject:user_profile_page$&tr_user=%user%
 wikiplugin_avatar: y
 wikiplugin_button: y
 wiki_page_hide_title: y
objects:
 -
  type: wiki_page
  ref: user_profile_page
  data:
   name: Profile
   content: wikicontent:User_Profile_user_profile_page
   hide_title: y
   locked: y
 -
  type: wiki_page
  ref: user_profile_page_template
  data:
   name: Profile TPL
   content: wikicontent:User_Profile_user_profile_page_template
   locked: y
permissions:
 Registered:
  objects:
   -
    type: wiki_page
    id: Profile TPL
    allow: 
     - use_as_template
{CODE}