init_album

Tag {init_album} displayes the specific album with the uploaded pictures.

 Parameters

  • id - ID number of the album to return
  • name - variable name where the returned data is saved. Default value is "album".
  • start - the starting row number to return.
  • limit - the number of rows to return. You must use this parameter always with "start" parameter.
  • metadata - defines the metadata ID. Only used when metadata sets exist in a database.
    This functionality is deprecated in version 4, please use profiles instead.
  • on_create - allows to publish all objects immediately. If the parameter has value "on_create=publish", then a created object is published immediately. Default value is "hide". 4.0.2

 Attributes

  • id - ID number
  • parent_id - ID number of parent object
  • buttons - action-buttons for section editing, available only for authorized editors
  • thumbnail - HTML-code to display small thumbnails of the pictures
  • href - link to the albums' detailed view, e.g. ?id=368. 3.3.3
  • title - title of the album. 3.3.3
  • date - the date of the album. 3.3.3
  • fdate - the date of the album in format YYYY-MM-DD . 3.3.3
  • datetime - date and time of the album format dd.mm.yyyy hh:mm. 4.4.1
  • fdatetime - date and time of the album in database format, eg yyyy-mm-dd hh:mm:ss. 4.4.1
  • created_user_id - user ID who initially created the object. 4.0.3
  • created_user_name - user full name who initially created the object. 4.0.3
  • changed_user_id - user ID who made the last object saving. 4.0.3
  • changed_user_name - user full name who made the last object saving. 4.0.3
  • created_time - creating time of the object in format dd.mm.yyyy hh:ii. 4.0.3
  • fcreated_time - creating time of the object in database default format, eg yyyy-mm-dd hh:ii. 4.0.3
  • changed_time - last saving time of the object in format dd.mm.yyyy hh:ii. 4.0.3
  • fchanged_time - last saving time of the object in database default format, eg yyyy-mm-dd hh:ii. 4.0.3
  • comment_count - the number of comments. 4.0.6 
  • last_commented_time - the last comment time in format dd.mm.yyyy hh:ii. 4.0.6
  • forum_allowed - value is 1 if forum is allowed for the album, 0 otherwise. 4.2.1

General tags

  • <name>_newbutton - prints "New" action-button for creating a new object.
  • <name>_editbutton - prints "E-button" to edit current album.
  • <name>_title - prints title of the album
  • <name>_col - prints the number of columns in the album
  • <name>_row - prints the number of rows in the album
  • <name>_count - the number of returned objects.  If parameter "limit" is set then count equals to "limit" value.

Examples


{init_album id=$id}

<h1>{$album_editbutton}{$album_title}</h1>

{foreach from=$album item=obj}

    {$obj->buttons}
    {$obj->thumbnail}

{foreachelse}
    {$album_newbutton}
{/foreach}