Image on top?

gyfi

Avatar: gyfi

2010-04-30 10:35

Hi,

How can I include "top" in the drop down list for images, so I can place the image on top as well as left and right side?

» Quick.Cms v2.x

Gyfi

pxl666

Avatar: pxl666

2010-04-30 13:06

if u want to place images ABOVE text, u have to modify CSS for specyfic image placement rule

beholder

Avatar: beholder

2010-05-01 13:15

the above advice is not complete and invalid in the context of what the original poster wanted. Here you go:

1. add new type to the $aPhotoTypes array in config/lang_en.php:
$aPhotoTypes[3] = 'Top';

2. modify function listImagesByTypes() in core/files.php, line:
if( $iType < 3 ){
to:
if( $iType < 5 ){

3. add additional image placement block in templates/pages_default.tpl:

<!-- BEGIN IMAGES_LIST_3 --><li><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" />$aData[sDescriptionContent]</li><!-- END IMAGES_LIST_3 -->
<!-- 
BEGIN IMAGES_DESCRIPTION_3 --><div>$aData[sDescription]</div><!-- END IMAGES_DESCRIPTION_3 -->
<!-- 
BEGIN IMAGES_HEAD_3 --><ul class="imagesList" id="imagesList3"><!-- END IMAGES_HEAD_3 -->
<!-- 
BEGIN IMAGES_FOOT_3 --></ul><!-- END IMAGES_FOOT_3 -->



4. (optional) add additional css to templates/default.css:
#imagesList3{margin:10px 0 0 10px;}

gyfi

Avatar: gyfi

2010-05-01 15:15

Thank you :)

Gyfi

Back to top
about us | contact