init_picture
Tag {init_picture} can be used to call out one specific picture with a defined ID number.
Parameters
- id - ID number of the picture. If ID is not defined then current page ID is used.
- name - variable name where the returned data is saved. Default value is "picture".
- 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
- buttons - defines which action buttons are displayed to the site editor. Values can be "new,edit,hide,move,delete". 4.2.1
Attributes
- id - ID number of the picture to return.
- parent_id - ID number of parent object.
- album_href - ID numberof the album where this picture belongs.
- title - title of the picture.
- buttons - action-buttons, available only for editors.
- hit_count - returns page load count of the object. 3.3.1
- thumbnail - thumbnail of the image. 3.3.4
- 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
- show_headline - value is 1 if headline is visible for the article, 0 otherwise. 4.2.1
- image_width - image width in pixels, only for filesystem-based album. 4.2.3
- image_height - image height in pixels, only for filesystem-based album. 4.2.3
General tags
- <name>_source - html-tags which display the picture
- <name>_thumbnail - html-tags which display the picture thumbnail
- <name>_next - ID number of the next picture in the album
- <name>_previous - ID number of the previous picture in the album
Examples
{init_picture name="pic" id=18148}
<h1>{$pic->buttons}{$pic->title}<h1>
{$pic_source}
{if $pic_next}
<a href="?id={$pic_next}">Previous</a>
{/if}
{if $pic_previous}
<a href="?id={$pic_previous}">Next</a>{/if}
{/if}
RSS