更改 Magento CMS 主页

发布于 2024-12-17 16:30:23 字数 1006 浏览 5 评论 0原文

我正在使用 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

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

黑寡妇 2024-12-24 16:30:23

您只需前往系统>>即可配置>>,然后单击窗口中常规下留下的网络

然后点击默认页面并设置CMS主页

第二件事,您必须“启用”此页面,并且可以从
cms>>页面,然后单击您选择的页面,然后设置状态>>启用

you can simply go to system >> configuration >> and click on the web which is left in your window under general.

than click on Default Pages and set CMS Home Page

Second thing, You have to do "enable" this page and you can do it from
cms >> pages and click on the page which you have selected, than set status >> enable

倥絔 2024-12-24 16:30:23

CMS中的唯一标识符>管理内容部分只需是商店视图上下文中的唯一字符串。您不应该在那里使用核心模块的名称(例如“cms”)。将您的 url 键更改为唯一的内容,然后前往“系统”>“配置。选择网络。只要将默认 Web URL 设置为 cmscms/indexcms/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, or cms/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.

っ〆星空下的拥抱 2024-12-24 16:30:23

只是为了回答那些到达此页面的人;

如果您看到这种行为,您应该检查左上角的商店切换器。选择您的商店并检查其配置。

可能它没有使用默认设置并覆盖全局范围。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文