Differences

This shows you the differences between two versions of the page.

english:phpwcms-system:article:contentparts:images-special:one-thumb-several-largesize [2009/12/31 11:03]
Knut Heermann (flip-flop)
english:phpwcms-system:article:contentparts:images-special:one-thumb-several-largesize [2018/06/03 18:09] (current)
Line 20: Line 20:
==== Solution V1: ==== ==== Solution V1: ====
 +
 +**Up to version 1.4.5 r401**
 +
The Thumbs is laid on top of each other simply with **positon: absolute;**. The Thumbs is laid on top of each other simply with **positon: absolute;**.
Line 27: Line 30:
==== Solution V2: ==== ==== Solution V2: ====
 +
 +**Up to version 1.4.5 r401**
**//(Preset in CP-Trigger)//** **//(Preset in CP-Trigger)//**
Line 35: Line 40:
\\ \\
 +
 +==== Solution V3: ====
 +
 +
 +**Since version 1.4.6 r402** with all patches, see download docu "[[http://www.phpwcms-docu.de/download-dev-versionen.phtml|DEV - Versionen im ZIP Format]]".
 +
 +Forum: [[http://forum.phpwcms.org/viewtopic.php?p=125981#p125981|Bilder einfügen mit nur 1 Vorschaubild]]
 +
 +Place in template from the CP in the surrounding container into a style statement:
 +
 +<code html>[PHP]if ('{FIRST}' == '') echo 'display: none;';[/PHP]</code>
 +"display: none" is set for all <div> enclosing container, except the first.
 +
 +**E.g. in a "Images special" template:**
 +<code html>
 +<!--IMAGES_ENTRY_START//-->
 +<div id="img{IMGID}" class="imageEntry" style="float:left;padding:5px;border:1px solid #CCCCCC;margin:{SPACE}px {SPACE}px 0 0; [PHP]if ('{FIRST}' == '') echo 'display: none;';[/PHP]">
 + {IMAGE}
 + [CAPTION]<p>{CAPTION}</p>[/CAPTION][CAPTION_ELSE]<p>{IMGNAME}</p>[/CAPTION_ELSE]
 + [INFOTEXT]
 + <!-- auto <p>info text</p> text -->
 + {INFOTEXT}
 + [/INFOTEXT]
 + [INFOHTML]
 + <!-- pure HTML info text -->
 + {INFOHTML}
 + [/INFOHTML]
 +</div>
 +<!--IMAGES_ENTRY_END//-->
 +</code>
 +
 +
 +The number of columns in BE must be at least as large as the number of images, since the ID **%%(FIRST) = <!-- First Image -->%% ** will be placed on a column top.
 +
 +There are no more scripts needed.
 +
 +\\
 +~~UP~~
===== Backend: ===== ===== Backend: =====
Line 46: Line 89:
===== Template V1: ===== ===== Template V1: =====
 +
 +**Up to version 1.4.5 r401**
Create the file ##/template/inc_cntpart/imagespecial/one_thumb_several_largesize.tmpl## and put into the code below. \\ Create the file ##/template/inc_cntpart/imagespecial/one_thumb_several_largesize.tmpl## and put into the code below. \\
Line 84: Line 129:
===== Template V2: ===== ===== Template V2: =====
-##/template/inc_cntpart/imagespecial/one_thumb_several_largesize.tmpl## anlegen und den unten stehen code dort ablegen. \\+**Up to version 1.4.5 r401** 
 + 
 +Create the file ##/template/inc_cntpart/imagespecial/one_thumb_several_largesize.tmpl## and put into the code below. \\
  - After a renewed call to the CP this template will appear in the select list and you can selectable.   - After a renewed call to the CP this template will appear in the select list and you can selectable.
Line 121: Line 168:
===== CP-Trigger ===== ===== CP-Trigger =====
-Die Datei ##/template/inc_Script/frontend_init/cp_trig_images_special.php## erstellen und den unten stehenden Code dort hineinkopieren.+**Up to version 1.4.5 r401** 
 + 
 +Create the file ##/template/inc_Script/frontend_init/cp_trig_images_special.php## and put into the code below.
-Bitte kommentieren Sie je nach verwendeter Version //(V1/V2)// die entsprechende Zeile aus. Voreingestellt ist die Version 2 //(V2)//.+Please comment out the appropriate line, depending on the version //(V1/V2)//. Version 2 is preset //(V2)//.
<code php|h cp_trig_images_special.php |h> <code php|h cp_trig_images_special.php |h>
english/phpwcms-system/article/contentparts/images-special/one-thumb-several-largesize.1262253834.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0