Hello!
Could you please, help me out with the specifying location for blocks on page.
I mean for example: position:absolute; top:419px; left:50%; z-index:3;
Could it be done throughout AdminPanel/CMS/ManagePages ? Or changes have to be made in script files? And if its possible i would really appreciate if u post the code, and if needed name files that have to be changes.
Thank You!
PS: Ive been searching thought website about it, but could find anything.
...ok…
I need to create 2 blocks under the header, that would be consist of an image and serve as a link to a category, those blocks have to have other images that would link to a specific product…
How can i do this?! Please help!
I know how frustrating it is to not get answers - so let’s see if I can help.
The design guide has lots of stuff in it go back and read it one or two more times and follow the tutorials.
it sounds and looks like you need to modify the existing layout - copy the original magento file off so you have a backup.
You’ll need to create a new block area and then insert it into the layout.
Modifiy two files page.xml and the template you are changing.
Page.xml will just be the “declaration” of the block and the block type. See the current blocks that are there for examples.
The template will reference the block from page.xml and handle where it’s going to be displayed. Again, see the items that are there. You’ll have to handle the layout in the template.
I know this is pretty brief, but should at least point you in the right direction.
You’ll need to create a new block area and then insert it into the layout.
Do you mean i have to create additional file with needed structure in (my situation?) template/page , and then insert block in page.xml that would link to that file?
Modifiy two files page.xml and the template you are changing.
Page.xml will just be the “declaration” of the block and the block type. See the current blocks that are there for examples.
The template will reference the block from page.xml and handle where it’s going to be displayed. Again, see the items that are there. You’ll have to handle the layout in the template.
I thought i understood what you were saying, but whatever i did it didn’t seems to be working.
... Ive created phtml file in template/page/html/box1.phtml and block in page.xml: