Tribiq CMS

Choose your language

6.14 Picture

The Picture Content Item has been created so that you can upload just one source/original image, and Tribiq CMS will generate a placeholder and various thumbnail sizes for your visitors.

To create a Picture Content Item, you must have a template with the prefix PICT-, e.g. PICT-standard.tpl.php.

It must have this snippet in it:

<?php include "templateincludes/picture.inc.php";?>

But as usual, you should copy this file to your template family first, and include it from there.

6.14.1 Picture Sizes

You may want to modify the constraints that the images can be provided in. These are located near the top of the picture.inc.php file.

        $constraints[] = array();
        $constraints[] = array("height" => 600,"width" => 600);
        $constraints[] = array("height" => 1024,"width" => 1024);

You may have to update the graphical buttons if you change the picture constraints. The system will try to locate the following three buttons in your template family folder.

/images/gallery_btn_download_o.gif

/images/gallery_btn_download_m.gif

/images/gallery_btn_download_l.gif

Top of Page