CNT part "images", default values for size and col

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

CNT part "images", default values for size and col

Post by macangelo »

Hi all,

Since version 1.3.3 the content part "images" has default values for height (200), height (175), and columns (2).

Sometimes I want to leave the height open because several images have different proportions. After saving the value 175 is inserted again.

Where do I change these default values?

Thanks a lot

macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

"/template/inc_settings/template_default/custom_settings.php"(CHANGE HERE)

Code: Select all

Use this to overwrite default "template_default" settings, wich are defined in
	"config/phpwcms/conf.template_default.inc.php"
	
	Set only those values which shuld overwrite defaults.
	Both arrays will be merged while frontend rendering process.
	
	To use an value remove the "//" (comment sign) in front of the value
...
...
...
//$template_default['imagegallery_default_width']				= 200;
//$template_default['imagegallery_default_height']			= 175;
//$template_default['imagegallery_default_space']				= 3;
//$template_default['imagegallery_default_column']			= 2;
"/config/phpwcms/conf.template_default.inc.php"(UNCHANGED ORIGINAL):

Code: Select all

$template_default['imagegallery_default_width']				= 200;
$template_default['imagegallery_default_height']			= 175;
$template_default['imagegallery_default_space']				= 3;
$template_default['imagegallery_default_column']			= 2;
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

Hi DeXXus - and thank you for the quick response.

I'm doing something wrong. I removed "//" and changed the value but I still get that old value 175. When I change it in the "conf.template_default.inc.php" it works. Do I have to activate the "custom_settings.php" some place?

Best
macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

yes - look into the Structure-Level Edit

there is a Field 'settings: Will overwrite default settings of config file'
where you can select it
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

Thanks Pico,

where is this Structure-Level Edit? in which file?

I searched and the only result I found in "lang.inc.php" line 1133:

Code: Select all

$BL['be_overwrite_default']				= 'Will overwrite default settings of config file';
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

no File :D

goto Backend -> Admin -> Structure -and goto Edit

it's under the Field where you select the Template
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

Oh, got it - thanks a lot![/i]
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
Post Reply