Loading...
 
Skip to main content

History: User_Tracker_profile_cover_image_field

Source of version: 5

Copy to clipboard
            Optional ''Cover Image'' field for https://profiles.tiki.org/User_Tracker

!! Object Permissions
First we need to allow Registered users to be able to upload to the ''User Files'' file gallery.

{CODE(caption=YAML)}
permissions:
 Registered:
  objects:
   -
    type: file_gallery
    id: 2
    allow: [ tiki_p_download_files, tiki_p_list_file_galleries, tiki_p_upload_files ]
{CODE}

(please note galleryId 2 is reserved to the special "User Files" file gallery)

!! Files Type Tracker Field
{CODE(caption=YAML)}
objects:
 -
  type: tracker_field
  ref: profile_cover_image
  data:
   name: $profilerequest:Name for the "Cover image" field:$Cover Image$
   type: files
   options: 
        galleryId: 2
        filter: image/*
        count: 1
        displayMode: img
        replace: n
        uploadInModal: y
        image_x: 1280
        image_y: 1280
   tracker: $User_Tracker:user_tracker
   flags: [ public ]
{CODE}
        

History

Information Version
Fri 30 of Jun, 2017 20:40 GMT-0000 luciash d' being ๐Ÿง™ perms 6
Fri 30 of Jun, 2017 20:36 GMT-0000 luciash d' being ๐Ÿง™ perms 5
Fri 30 of Jun, 2017 20:21 GMT-0000 luciash d' being ๐Ÿง™ perms 4
Fri 30 of Jun, 2017 18:55 GMT-0000 luciash d' being ๐Ÿง™ restrict image size to max 1280px width and height 3
Fri 30 of Jun, 2017 17:29 GMT-0000 luciash d' being ๐Ÿง™ avoid circular refference error 2
Fri 30 of Jun, 2017 17:27 GMT-0000 luciash d' being ๐Ÿง™ new field for User Tracker 1