OpenCart adding page to the layout

天大地大妈咪最大 提交于 2019-12-25 01:10:06

问题


In every module and section of opencart we see a drop down called layout. Which usually contains pages such as category, news, product, default, home, etc...

How can I add a page to this section?

Now, I can add a CONTENT_PAGE via information->insert.

Else, I usually do it by creating a controller and a template, but the page I create is not formally recognized by opencard.

My question is that I should I make open card recognize my page which I create by making a controller and a template manually within the project folder. How?

thanks in advance


回答1:


Though these questions suit more for OpenCart forum instead of SO, I'll try to answer the first one shortly:

How can I add a page to this section? Go to administration -> System -> Desgin -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).

The second problem is completely unclear to me. Can You be more specific and describe in more details?



来源:https://stackoverflow.com/questions/23736415/opencart-adding-page-to-the-layout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!