Page 1 of 1
max picture width 538px though set to 635 in backend
Posted: Fri 17. Dec 2004, 15:20
by shakkalakka
I'd like to add a picture in an article. The content block width is 635px in my case (I defined that in the page layout). Nevertheless, whenever I try to set the picture width to something bigger than 538 in the article editor, it's reduced to 538px.
I changed several values in 'conf.inc.php' and 'conf.pagelayout.inc.php' concerning the content block width to 635px...
Any ideas where this 538 might be changed elsewhere?
Posted: Fri 17. Dec 2004, 15:29
by Karla
your Page layout Main: block must be set at the default of 538! That plus Left: and Right: make up the screen width for you to place content, BUT, ~your~ {CONTENT} tag must be in Main: ???
Posted: Fri 17. Dec 2004, 15:45
by shakkalakka
Why has the main block to be 538px?
I have attached a grfx that explains my layout. Have a look:
It's easily possible to set the conten block width in the page layout editor so I guess it should be possible to display images with bigger widths than 538px in there, shouldn't it?
Posted: Fri 17. Dec 2004, 21:41
by Magnum
hello,
if i understood you right look at the include/inc_conf/conf.inc.php
at line:
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
greetz
Posted: Fri 17. Dec 2004, 21:44
by Magnum
ohh, im sooo sorry...
i dont read your aricle exactly...
greetz
Posted: Sat 18. Dec 2004, 02:04
by Karla
shakkalakka wrote:Why has the main block to be 538px?
It doesn't ~have~ to be... I was just saying that the -=default=- frontend setup: page layout has the settings that are mentioned in "conf.pagelayout.inc.php":
Code: Select all
$pagelayout["layout_all_width"] = "760";
$pagelayout["layout_content_width"] = "538";
$pagelayout["layout_left_width"] = "200";
$pagelayout["layout_right_width"] = "1";
$pagelayout["layout_leftspace_width"] = "11";
$pagelayout["layout_rightspace_width"] = "10";
$pagelayout["layout_header_height"] = "20";
$pagelayout["layout_footer_height"] = "15";
...And if your -*chosen* template accidently has the -=default=- page layout selected ~instead~ of one that you have created with the settings below... you might get the symptom that you describe. Did you create a new page layout, name it, and then choose it from the dropdown list in the Admin template screen? If so, phpwcms should be rendering your new screen dimensions in the browser source code.
shakkalakka wrote:It's easily possible to set the conten block width in the page layout editor so I guess it should be possible to display images with bigger widths than 538px in there, shouldn't it?
In there, you are not setting the content block width, you are setting the page dimensions [then you will be inserting the {CONTENT} tag into ~one~ of those "sections" of the page layout and the content is made to fit whichever "section you choose. For example the actual WIDTH of your web page is gonna be
all blocks: which is the SUM of these five(5) sections of the template:
left: +
left space: +
main: +
right space: +
right:.
It's clear that you understand, how you put the {CONTENT} tag in
main:... and the rendered content will be -no- wider than the settings for
main: in your *chosen* page layout. BUT, have you selected ~that~ page layout (that you created)... in the dropdown of the Admin template screen? That's the question ? Hope I don't sound too confusing. Sorry
Posted: Sat 18. Dec 2004, 15:09
by shakkalakka
I did create a page layout with the 'main' set to my 635px where the {CONTENT} is in AND I did choose that layout in the template(s) I use for my page. And nevertheless, images cannot be displayed wider than those 538px (as I mentioned before I also change values in the 'conf.inc.php' and 'conf.pagelayout.inc.php' files).
Any other ideas?
Posted: Sat 18. Dec 2004, 15:24
by Karla
"config.inc.php"
Code: Select all
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
Posted: Sat 18. Dec 2004, 15:30
by shakkalakka
...I already changed that to my width (635px) with same results.
Posted: Sat 18. Dec 2004, 16:44
by pepe
Hi Shakka...
load up your images again and it will work.
Posted: Sun 19. Dec 2004, 01:23
by shakkalakka
...that was it! I just got it on my own. But thanks anyway!
What are the settings to change for max. width?
Posted: Sat 29. Oct 2005, 01:33
by anthony.abraira
shakkalakka wrote:...that was it! I just got it on my own. But thanks anyway!
What did you end up doing to get it to work. I have changed the settings on both those places and I am still getting my images resized to 538.
Thanks