开发者

Magento Where is the Index File?

I am looking at someones Magento installation in the admin section. The page called home is actually not the template used for the index. I am wo开发者_高级运维ndering where I can easily find out what the default template it is using for the index is?

Any help appreciated


Magento is an application. The pages you see don't actually exist. They are assembled from multi-level nested code block templates and CMS subsystem entries stored in the database. Their various attribute fields are filled in from the various tables associated with each particular function (category displays, product listings, views, etc.)

index.php is merely a startup file that executes the application known as Magento.

Depending on how this was set up, you need to go to the dropdown menu CMS and look for a page there that will be loaded as the Home page.


Fiasco is absolutely correct. If you want to see some of how that page is rendered, take a look at the layouts and templates at %magento%/app/design/adminhtml/default/default. In the layout folder there, take a look especially at main.xml, which defines adminhtml layout, and admin.xml, which defines the layout for the dashboard. Those files will contain references to the many files in template that will echo the actual code for that page.

Hope that helps!

Thanks, Joe


The page your store uses as it's homepage is stored in the Magento configuration settings.

If you look inside configuration -> web or configuration -> design you will see there's some setting to allow you to use any of your pages as the default index page.

by default this should be the page with key 'home'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜