I everyone..
im new in magento i would like to do a few modifications in my pages, but i don’t know how…
i like to know how do to put a cms static block (with html) in a left column o right column, using a xml layout update, because i like the change the contents for every page. And disable all defaults blocks in all pages and let only the cms blocks..
where I wanted the block to be displayed, this was in the main content from the home, but I guess you can add it to a column too.
Replace “xxxxx” with the id of the static block you created before.
I used this method to put a CMS in the left column.
it positioned the cms OK, but it didn’t apply the default formatting for the left hand column, ie back colour etc.
Really struggling with how to make this apply the default formatting.
Long term I also want to put the mostviewedmodule in the left.
Yes, it very well could be, but I’m very new to this.
How do I set this to inherit the css style?
Thanks for you help.
I haven’t gotten that far myself! I would need to look at the HMTL and try to figure out if there were any surprises in the structure, find the location of the CSS file, and then open it over FTP in CSSEdit and start experimenting with changes.
Went through the CCs and added the DIV class in the CMS block.
Wasn’t to bad, I just thought there may have been a way of making this automatic. eg, CMS placed in left automatically inherates the CCS of the left.
an example below.
<div class="block"> <div class="block-top"> </div> <div class="block-content "> CQFIS a leading supplier of Industrial Supplies<br><br> </div> <div class="block-bottom"></div> </div>
havent started on the mostviewed module in the left yet, but that is next.
I want to ad a static block to the right column. I have created the static block so what do I do know. after spending the best part of a day looking at this forum and magento design docs I am told place this code in the right column. errr where do I find the correct html for the right column in which i should place this code? Please help I am feeling less clever by the minute here.
Just to clarify and sum up this solution for version 4.0.1....
Add the code in the file Catalog.xml located here: app/design/frontend/base/default/layout (or YOUR relevant location) - Make sure to backup your original files before modifying!