Reputation: 129
I was wondering if the best way to create landing pages and templates for these in Magento is to create cms pages ?
Write static blocks and then create a new cms page all the time or is there another good way to do this ? Is a category page better ?
Upvotes: 0
Views: 183
Reputation: 129
I am now using category pages and there I add static blocks or whatever I need. It is a pretty standard process and gives me lots of freedom to create and design the pages the way I want. Using XML Layout updates I can hide/show blocks and every single piece of the website.
Upvotes: 0
Reputation: 136
Both methods are fine. From an organizational standpoint, I prefer the CMS method.
Open an FTP Client (e.g. Filezilla) and navigate to your template directory app/design/frontend/default/[YOUR THEME]/template/catalog/navigation/top.phtml
Note: If you do not see a navigation/ directory in your template directory, you will have to copy the directory from app/design/frontend/base/default/template/catalog/navigation
In the top.phtml file, add the following line
<?php echo $this->getLayout()->createBlock('cms/block')
->setBlockId('nav_links')->toHtml() ?>
after this line
<?php echo $_menu ?>
- Login to your Magento admin panel and navigate to CMS > Static Blocks
- Create a new static block. Below are details:
Block Title: Navigation Links
Identifier: nav_links
Status: Enabled
Content:
<li><a href="{{store url=''}}"><span>Home</span></a></li>
<li><a href="{{store url='about'}}"><span>About</span></a></li>
<li><a href="{{store url='contact'}}"><span>Contact</span></a></li>
- Save the new static block
- If you need to add more pages, create the CMS pages and then edit the "nav_links" static block and include the page title and name.
Note: Make sure that CMS pages have been created first.
Hopefully this helps out.
Upvotes: 1