更改 Magento CMS 主页
我正在使用 contus 的 groupon 克隆
我尝试更改 cms 主页 .正如我观察到的那样,可以在
系统>配置>网页>默认页面
我尝试更改 CMS 主页。我选择了我制作的模板
CMS>页数
我希望加载模板。经过几次尝试,清除缓存,甚至将默认 Web URL 更改为模板URL Key。它没有工作
有什么建议吗?
这是默认 cms_home_page
我尝试编辑 config.xml这
应用\代码\核心\Mage\Cms\etc
我更改了 default >网络>默认> cms_home_page 节点插入 coming-soon URL 键。仍然不起作用,
我可以访问 http://127.0.0.1/mg/coming-soon/ 页面和 http://127.0.0.1/mg/home/ 页面也是如此。我只是想知道为什么要设置我在管理员中应用(也可以在数据库中看到)不起作用。
I am using this groupon clone from contus
I am try to change the cms home page .Which as what i have observed can be found in
System > Configuration > Web > Default Pages
I tried changing the CMS Home Page .i chose the template that i made in
CMS > Pages
I am expecting the template to be loaded .and ugh after several tries, clearing the cache and even changing the Default Web URL into the templates URL Key .it didn't work
any suggestions?
Here's a screenshot of the default cms_home_page
I tried editing the config.xml in the
app\code\core\Mage\Cms\etc
I changed the default > web > default > cms_home_page node into the coming-soon URL key .Still didn't work
I can access the http://127.0.0.1/mg/coming-soon/ page and the http://127.0.0.1/mg/home/ page as well .I just wonder, why the settings i applied in the admin (and can also be seen in the db) doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
CMS中的唯一标识符>管理内容部分只需是商店视图上下文中的唯一字符串。您不应该在那里使用核心模块的名称(例如“cms”)。将您的 url 键更改为唯一的内容,然后前往“系统”>“配置。选择网络。只要将默认 Web URL 设置为
cms
、cms/index
或cms/index/index
您应该能够简单地从默认 Web URL 下拉列表中选择所需的 CMS 页面。确保检查其他配置范围设置(左上角的下拉列表),以防在较低级别设置粗鲁的设置。仅供参考,您在“管理页面”部分中“制作”的是包含内容的路由,而不是“模板”(用 Magento 的说法)。模板是
app/design
下的 PHTML 文件。The unique identifier in the CMS > Manage Content section just needs to be a unique string in the context of a store view. You should NOT use the frontname of a core module there (e.g. "cms"). Change your url key to something unique, and head to System > Configuration. Select Web. As long as the Default Web URL is set to
cms
,cms/index
, orcms/index/index
you should be able to simply choose the desired CMS page from the Default Web URL dropdown. Make sure you check other configuration scope settings (dropdown at top left) in case there is a rude setting set at a lower level.FYI, what you "make" in the Manage Pages section are routes with content as opposed to "templates" (in Magento parlance). Templates are PHTML files under
app/design
.只是为了回答那些到达此页面的人;
如果您看到这种行为,您应该检查左上角的商店切换器。选择您的商店并检查其配置。
可能它没有使用默认设置并覆盖全局范围。
Just to answer to those who reach this page;
If you see this behaviour you should check the store switcher in your top left. Choose your store and check the config for it.
Probably it's not using the default settings and overriding the global scope.