在 magento 中创建登陆页面的最佳方式是什么?

What's the best way to create landing pages In magento?

我想知道在 Magento 中为这些创建登录页面和模板的最佳方法是否是创建 cms 页面?

写静态块,然后一直创建一个新的 cms 页面,还是有其他好的方法来做到这一点? 类别页面更好吗?

两种方法都可以。从组织的角度来看,我更喜欢 CMS 方法。

内容管理系统方法

  1. 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

  2. 在 top.phtml 文件中,添加以下行

<?php echo $this->getLayout()->createBlock('cms/block')
->setBlockId('nav_links')->toHtml() ?>

after this line

<?php echo $_menu ?>
  1. Login to your Magento admin panel and navigate to CMS > Static Blocks
  2. 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>

  1. Save the new static block
  2. 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.

希望这对您有所帮助。

我现在正在使用类别页面,并在其中添加静态块或任何我需要的内容。这是一个非常标准的过程,让我可以自由地按照自己的方式创建和设计页面。使用 XML 布局更新,我可以 hide/show 块和网站的每一部分。

  1. 创建子类别
  2. 如果您有特定内容,请使用静态块(这允许所有 HTMT 等)
  3. XML 布局更新 show/hide 块、面包屑、边栏等