Magento – ( Static ) Show block only on homepage

Who wants to show only certain blocks on the HOME page of the Home Page so Magento Stores, can do this with a small code snippets. In header.phtml folder app / design / frontend / base / default / template / page / html in the default template is still simple: <?php if ($this->getIsHomePage()):?> <h1 class=”logo”><strong><?php echo $this->getLogoAlt() ?></strong><a href=”<?php echo $this->getUrl(”) ?>” title=”<?php echo $this->getLogoAlt() ?>” class =”logo”><img src =”<?php echo $this->getLogoSrc()…

Magento – dynamic URL

Even though it is only a short and not quite sure allumfänglich applicable entry: Would like to link to, for example in a phtml file on a link in the shop, which should be dynamic, so that it is available, for example, by switching to the live system or in another store's Views, then you have instead of http://www.IhreDomain.com/index.html/shop.html…

Magento – Static block / Static Block in Seite und phtml einbauen

If you would like to install additional static blocks in his front, can do this quickly by first of each static block is created. Here, the page identifier / code to be the one, will be called later. Then only the following line in the PHTML file in place install and off you go: <?php echo $this->getLayout()->createBlock(&#8216;cms/block&#8217;)->setBlockId('EigenerSeitenbezeichner')->toHtml()…

Magento – Static block installed in the header

Who in the header of Magentoshops would like to have some additional information or other things, this can be done relatively easily. Either by header.phtml file in the folder app / design / frontend /[base or default]/[IhrTemplate]/template / page / html rumgeschrieben is directly or also through the introduction of elements with a static block. For this purpose, the backend CMS > Static blocks…