NAVIGATION
This is an old revision of the document!
in /frontend_init/ using the function cp_trigger:
<?php // ------------------------------------------------------------------------------------------- // obligate check for phpwcms constants if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); } // ------------------------------------------------------------------------------------------- function CP_IMAGES_SLIDESHOW2($text, & $data) { if( $data['acontent_type'] == 29 ) // CP: 29 => image <div> CP: 31 => image special { // ----------- table dump dumpVar($GLOBALS['crow']); // ----------- field dump acontent_form $CP = @unserialize($GLOBALS['crow']["acontent_form"]); dumpVar($CP); } return $text; } register_cp_trigger('CP_IMAGES_SLIDESHOW2'); ?>
dumpVar($GLOBALS['crow']);
Result:
Array ( [acontent_id] => 85 // biunique CP-ID [acontent_aid] => 26 // biunique article-ID [acontent_uid] => 1 [acontent_created] => 2009-11-11 23:11:19 // CP created [acontent_tstamp] => 2009-11-17 09:58:32 // CP last chnges [acontent_title] => Image < div > slidedhow // title text [acontent_text] => <p>Text, Text, Text</p> // wysiwyg text <p>Text, Text, {CITY} Text{a:anker-div}</p> [acontent_type] => 29 // content typ (images <div> = 29) [acontent_sorting] => 0 // sort value [acontent_image] => [acontent_files] => [acontent_visible] => 1 // status: visible [acontent_subtitle] => // subtitle text [acontent_before] => 15 // space: before [acontent_after] => 20 // space: after [acontent_top] => 0 // top link [acontent_redirect] => [acontent_html] => [acontent_trash] => 0 // 9=trash [acontent_alink] => [acontent_media] => [acontent_form] => (see above) // e.g. all image parameters in serialized form [acontent_newsletter] => [acontent_block] => CONTENT // display type [acontent_anchor] => 1 // [0|1] off|on [acontent_template] => slideshow2.tmpl // usedn template file [acontent_spacer] => 0 // ?? [acontent_tid] => 0 [acontent_livedate] => 0000-00-00 00:00:00 [acontent_killdate] => 0000-00-00 00:00:00 [acontent_module] => [acontent_comment] => {PREV-NEXT}{KEN-BURNS} // Comment field [acontent_paginate_page] => 0 // subsection No [acontent_paginate_title] => // subsection (pagination) title [acontent_category] => [acontent_granted] => 0 )
$CP = @unserialize($GLOBALS['crow']["acontent_form"]); dumpVar($CP);
Result:
// ======= CP image <div> parameter Array ( [images] => Array ( [0] => Array ( [0] => 6 // biunique image ID [1] => Dscn1531_800x600.jpg // real filename [2] => 129371f7f736a0a8d0b9083b2e10fc8f // hash in /filearchive/* [3] => jpg // file extend [4] => 80 // thumb width [5] => 60 // thumb height [6] => Liegestuhl, sehr bequem // caption test ) } // general parameters [width] => 80 // max [width] of the thumbs [height] => 60 // max [height] of the thumbs [pos] => 0 // ??? [col] => 10 // [No.] of columns [zoom] => 0 // behavior: [0|1] = enlarge/zoom [off|on] [crop] => 1 // [0|1] = crop thumbnail [off|on] [space] => 3 // image space[No.]px [lightbox] => 0 // [0|1] lighbox [off|on] [nocaption] => 0 // [0|1] hide caption for thumbnails [off|on] [center_image] => 0 // [0|1|2|3] = [no center|center horiz./vert.|center horiz.|center=vert.] } // ==========================