开发者

Creating a Magento Sitemap page

开发者 https://www.devze.com 2023-02-11 02:23 出处:网络
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 c开发者_开

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 c开发者_开发知识库reated 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消