I want to add links to the footer - such as Customer service etc.. I do this by editing the CMS static block, footer links. However when I do this, they also appear in the very top menu.
Anyone know how to add links to the footer without them appearing in the top navigational menu?
Regards and thanks,
Fiona
Adding links to the static block will not show them on the top of the site, unless you have repeated the Block at the top of the template.
The footer links are controlled through XML and the Static Block.
There are multiple ways to achieve your need. You can include a custom block and create your own links under the CMS static blocks.
Could you expand on what exactly you are trying to achieve?
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_cms_block_identifier')->toHtml() ?>
Insert the above into the template. Create a CMS Static block with 'your_cms_block_identifier' and create your links
Related
Hi i have tried to add a product in slide show on magento home page but it not working can you please give suggestion for How to add a product on slide show in magento?
What you need to do is :
Create a static block (something/filename.phtml).
Load product collection in the static block and filter the products which you would want to see on the slider.
Create appropriate HTML markup for the section of the page.
Use a suitable jQuery / JavaScript plugin to render the slider.
Call the static block that was created in step 1, from the CMS Page meant for homepage. This can be done using Layout Updates Section.
I want to display a text only for a specific language in a cms page which contains a placeholder. So I cannot use the way with the translate.csv. (see http://jagdeepbanga.com/blog/magento_how_add_translation_ability_into_cms_page_or_static_block.html) It would just display the placeholder in plane text. And since it's a CMS-Page from an plugin I can't change to a specific store view.
Is it possible to do an if query in the cms page like displayed below? (Or sort of) It should work in the cms page without the need to use or editing a phtml template.
if (store view = norsk)
{
<p>bla...</p>
{{some placeholder}}
};
I made an extension with this topic, feel free to use it or modify it!
https://github.com/miguelbalparda/MB_Translate
You can use a CMS block with a different version for each store view, and include it in your CMS page with {{block type="cms/block" block_id="your_block_id"}}
I've got some categories in Magento which have got "Static block and products" as display mode. All these categories point to the same CMS block, which in turn points to a template file. The template file should generate different content according to the category.
So my question is: Can I, in the CMS block (or template file), somehow find out the category?
Thank you in advance!
Mage::registry('current_category');
I am new to magento .
I want to create a right sidebar on product view page such that this is visible only on product view page not on other pages.
How can I do this.Please Help.
Thanks.
To have a right sidebar only on the product page you need to to a few things:
in the admin panel set the product pages to have 2 columns with right sidebar
create a block and template file (or just edit one that is available)
in catalog.xml (this is in your themes's layout folder) find the handle called and within that section find in there you can add your block / template file.
For more info on how you can create blocks and templates see here.
In magento almost every postion is handled by catalog.xml, (if you go the proper way) You can place any static block , in catalog.xml you will find the postioning of blocks for every page (be it category, product or home page) just you need to place the block in the right reference.
I want to create a sitemap page for Magento that will display all the static pages in an orderly fashion. This page is going to be similar to http://www.magentocommerce.com/sitemap/ Has anyone created a Magento Extension or can someone point me in the right direction? Searching for this feature has been a nightmare since all I get are Google SEO results.
Edit: I would like to add some of the static pages to the site map. Currently the default sitemap has two options: Categories and Products. I would like a way to set which of my static pages can be added to the site map. Right now what I have done is just created a static page which I populated with links to my pages and products. However, if the client decides to add new products, it would require that page to be edited.
CMS > Pages > Manage Hierarchy
Bellow "Add node" button You can set CMS hierarchy with position.
$collection = Mage::getModel('enterprise_cms/hierarchy_node')->load("root_node_id");
"root_node_id" is parent of Your "Sitemap".
Create tree from $collection.
Also You can see enterprise_cms_hierarchy_node table, you can use columns as atributes from there to position elements inside Your tree.