Loading...
 
Skip to main content

History: File Gallery Handler

Source of version: 20

Copy to clipboard
            This is a ((handler)) that allows file galleries to created or updated. ((Object References)) are required to create trees of file galleries. Uploading files is not supported before Tiki 9 when the init_files option was introduced.

!Complete sample for an Intranet
{CODE(caption=>YAML)}
preferences:
 feature_file_galleries: y
objects:
 -
  type: file_gallery
  ref: primary
  data:
   name: Company XYZ
   description: All files owned by the company
   owner: admin
   archives: 5
   flags: [ public, visible, lockable ]
   column: [ icon, name, created, creator, files ]
   init_files:
    - http://profiles.tiki.org/pics/icons/plugin.png
 -
  type: file_gallery
  ref: public
  data:
   name: Marketing
   parent: $primary
   description: For external publication
   owner: johndoe
   flags: [ public ]
   column: [ icon, name, files ]
   popup: [ description ]
{CODE}

! File Gallery Object

All the items in the table below are parameters that are set at the 'data' level of the YAML and are generally applicable for Tiki12 and later but may not all work for earlier Tiki versions.

Before the data level, ie at the first 'object' level the type: is defined i.e. file_gallery, a ref: can be defined.

TO VERIFY: previously documented "In addition a mode option can be set which can be 'create' or 'update' or 'create_update' (default: create even if exists)." It should be that the mode be set at the "data" level not at the higher level. But it seems like it depends on whether galleryId is set or not. If galleryId is not set, then it always creates a new one (and update mode will generate an error). If update mode is set, then it checks that the file gallery specified exists. Other than this checking, it looks like the mode has no effect. If mode is not set, it will update if galleryId is set or create a new one if galleryId is not set 


||__Field Name__|__Mandatory__|__Value__
name|yes|Name of the file gallery
parent| |Parent file gallery ID
description| |Description of the file gallery
owner| |User maintaining the file gallery, default to admin
type| |default, podcast or vidcast
maxRows| |Amount of rows to display at a time
max_desc| |Description length in characters
archives| |Amount of archives to keep per file. 0 for unlimited, default to none (-1)
sort_mode| |Default sort order ie Name Ascending or Descending is set by using either name_asc or name_desc - other sort types set by using lastModif_ hits_ user_ description_ or id_
subgal_conf| |
image_max_size_x| |Maximum width in pixels of images in gallery
image_max_size_y| |Maximum height in pixels of images in gallery
quota| |Quota for the allowed storage limit for the File Gallery in Mb
backlinkPerms| |
wiki_syntax| |
icon_fileId| |Gallery Icon fileId#
flags| |__List of global flags__
| |public|File gallery is unlocked (public)
| |visible|Visible to non-admins
| |lockable|Files can be locked during download
show_name| |''name'', ''filename'' or ''both'' (default: ''both'')
init_files | URL to file to add to this file gallery (New in Tiki9)
column or popup| |__List of elements to display publicly__
 | |label used in 'Display Properties' admin screen| parameter to be used in profile script
| |ID|id
| |Type|icon
| |Description|description
| |Size|size
| |Created / Uploaded|created
| |Last Modified|modified
| |Uploaded by| creator (not obvious!!)
| |Creator|author (not obvious!!)
| |Last Modified by| last_user
| |Comment|comment
| |Files|files
| |Hits|hits
| |Last download|lastDownload
| |Locked by|lockedby
| |Backlinks|backlinks
| |Delete After|deleteAfter
| |Share with|share
| |Source|source
| |Explorer|explorer
| |Path|path
||

        

History

Information Version
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 21
Mon 20 of Apr, 2015 18:05 GMT-0000 Nelson Ko add more information about file gallery mode. need to verify 20
Mon 30 of Mar, 2015 08:53 GMT-0000 Geoff Brickell 19
Sun 29 of Mar, 2015 21:47 GMT-0000 Geoff Brickell 18
Sun 29 of Mar, 2015 21:25 GMT-0000 Geoff Brickell 17
Sun 29 of Mar, 2015 21:22 GMT-0000 Geoff Brickell 16
Sun 29 of Mar, 2015 21:11 GMT-0000 Geoff Brickell 15
Sun 29 of Mar, 2015 20:33 GMT-0000 Geoff Brickell parameter table updated 14
Sun 29 of Mar, 2015 19:29 GMT-0000 Geoff Brickell update to parameters 13
Sun 29 of Mar, 2015 14:53 GMT-0000 Geoff Brickell 12
Sun 29 of Mar, 2015 14:42 GMT-0000 Geoff Brickell 11
Sun 29 of Mar, 2015 14:37 GMT-0000 Geoff Brickell partial update to show by flags 10
Mon 24 of Feb, 2014 11:08 GMT-0000 Geoff Brickell clarify that public = unlocked 9
Fri 13 of Dec, 2013 14:38 GMT-0000 Geoff Brickell updates to colum/display documentation 8
Fri 01 of Jun, 2012 21:03 GMT-0000 Marc Laporte URL to file to add to this file gallery 7
Tue 23 of Feb, 2010 21:11 GMT-0000 sylvie 6
Sat 23 of Aug, 2008 15:36 GMT-0000 Marc Laporte 5
Sat 23 of Aug, 2008 15:26 GMT-0000 Marc Laporte 4
Tue 05 of Aug, 2008 17:28 GMT-0000 System Administrator 3
Tue 05 of Aug, 2008 17:23 GMT-0000 System Administrator 2
Tue 05 of Aug, 2008 16:56 GMT-0000 System Administrator 1