{{indexmenu_n>150}} ====== images special ====== **Small visual description:** of the "caption" function, "info text" and different "images". ===== Backend: ===== Have a look to the third picture set, they are different. The "cat" is the thumb and the little "dog" the zoomed image. So we need an own description text for each image. * The caption text is generally displayed in the zoomed image. :!: * In the template, we can choose what text is to appear below the thumbnail.\\ We use one of the two info texts and turn off the caption text for the thumbnail. //(In this example we will use the html text)//. Please have a look to the following step by step description: \\ {{:english:phpwcms-system:article:contentparts:images-special:image-special_be01_1.gif|}} \\ ~~UP~~ ===== Frontend: ===== ==== [_] hide caption for thumbnails ==== * [_] hide caption for thumbnails Caption text is on and the info text too. We have two different version for the info text, first only the plain text //(canĀ“t render html tags)// and second the html text including rendered tags. \\ The output is simply controlled in the template. E.g.:\\ [INFOTEXT] ..{INFOTEXT}.. [/INFOTEXT] [INFOHTML] ..{INFOTEXT}.. [/INFOHTML] \\ ==== The output: ==== {{:english:phpwcms-system:article:contentparts:images-special:image-special_fe01_1.gif|}} ==== Template: ==== **Location:** template/inc_cntpart/imagespecial/my_default.tmpl \\ **Snippet between:** ....
{IMAGE}
[CAPTION]

{CAPTION}

[/CAPTION][CAPTION_ELSE]

{IMGNAME}

[/CAPTION_ELSE]
[INFOTEXT]
{INFOTEXT}
[/INFOTEXT] [INFOHTML]
{INFOHTML}
[/INFOHTML]
\\ **The complete template:** [TITLE]

{TITLE}

[/TITLE] [SUBTITLE]

{SUBTITLE}

[/SUBTITLE] [TEXT]{TEXT}[/TEXT]
{IMAGE}
[CAPTION]

{CAPTION}

[/CAPTION][CAPTION_ELSE]

{IMGNAME}

[/CAPTION_ELSE]
[INFOHTML]
{INFOHTML}
[/INFOHTML]
**This "truncated ..." caption text is a special function.** //(The red one)//. \\ -> [[english/phpwcms_replacer_rts/frontend_init/cp_trigger/shorten-img-caption-text]] \\ ==== [X] hide caption for thumbnails ==== * [X] hide caption for thumbnails No caption text for thumbnails is generated, only the info text is shown. //(But we will see the caption text by zooming the image).// :!: **The output:** {{:english:phpwcms-system:article:contentparts:images-special:image-special_fe02_1.gif|}} \\ ==== [INFOTEXT]......[/INFOTEXT] in template killed ==== * [X] hide caption for thumbnails * [INFOTEXT]......[/INFOTEXT] in template killed **The output:** {{:english:phpwcms-system:article:contentparts:images-special:image-special_fe03_1.gif|}}
{IMAGE}
[CAPTION]

{CAPTION}

[/CAPTION][CAPTION_ELSE]

{IMGNAME}

[/CAPTION_ELSE]
[INFOHTML]
{INFOHTML}
[/INFOHTML]
\\ ==== LightBox output ==== Have a look to the caption text, in zoomed images the text is always on. :-) * [X] hide caption for thumbnails * [INFOTEXT]......[/INFOTEXT] in template killed **The output:** {{:english:phpwcms-system:article:contentparts:images-special:image-special_fe04_1.gif|}} \\ ~~UP~~ ===== Number of columns and picture distance ===== So that the output also generates the number of columns and the picture distance, the template must be extended. - Copy and rename the file ##/template/inc_default/imagespecial.tmpl## to ##/template/inc_cntpart/imagespecial/mytemplate.tmpl##. //For **mytemplate.tmpl** you can set your own name. // - After a recent call of the CPs this template appears in in the selection list and is selectable. - Now we enhances the template at the appropriate place:
\\ ===== quod vide: ===== [[english/phpwcms_replacer_rts/frontend_init/cp_trigger/shorten-img-caption-text]]