Some noob questions about designing a site.

Permalink
Hello -

Very new to concrete5 (and CMS in general) and have some questions that I feel are probably pretty basic but I have searched and found no solid answers yet.

1) I have an 'out-of-the-box' install currently and the first thing I'd like to customize/resize is, for lack of a better term, the content window. By that I mean if you look at this page, it has the light gray background, and the dark grey area that holds the forum contents. It is this dark grey area I'd like to change (make wider), I have no idea where to do this... I don't believe I would create a block to do this, but like I said Im not so sure.

2) Second question has more to do with HTML/general site design. In the past I'll use javascript to hide or show DIVs when a use selects something on a site (EX if I have 1 widget that comes in 3 colors, the user will click a color link and I'll change the image to that color). Because Im new to CMS, should I still contain logic like this all within 1 HTML content block, or can I use 2 blocks where the first block can notify the second block (both being on the same page though)?

Thanks for your time!
-B

 
warpol replied on at Permalink Best Answer Reply
warpol
Hi B,

1) You want to target that div with some css. The css that currently controls it is located at concrete/themes/default/main.css. Simply find the div you'd like to adjust and modify the 'width: xxx' attribute of that specific div.

2) As long as you insert that type of content as an 'HTML' block (and not content), you should be fine. The php simply parses your different content blocks together before serving a page. So you can divide it among different block like you imagine.

Hope this helps.

-C
bucketsofbits replied on at Permalink Reply
Thank you!

Another noob question, in my HTML blocks, how can I reference images that I have uploaded into the File Manager (or should I create a separate folder in the /concrete5/ instead of using the File Manager, and regular FTP them in place?)

I did see something along the lines of using a tag similar to <img src="<?php echo DIR_REL ?>/files/images/picture.png"> but it seems that the HTML scrubs the php and the browser renders it literally.
SVijay replied on at Permalink Reply
SVijay
Hi,

Go to dashboard ==> filemanager and get the filed ID of image and use the below code.

For instance if the file Id is 6 then

$f = File::getByID('6');
echo'<img src="'.$f->getRelativePath().'" />';

Hope you understand
jbx replied on at Permalink Reply
jbx
And if the HTML Block is scrubbing any php, as you say, then in the filemanager, you can see the actual path to the image. Click on any file in the filemanager, then click on properties and that will show you the url to the file.

Jon