简体   繁体   English

如何在机车cms中创建没有任何父页面的页面,即没有父页面

[英]How to create a page in locomotive cms without any parent page i.e. no parent

I am using locomotivecms and in locomotive, I have an index with child pages about-us and contact-us . 我正在使用locomotivecms ,在机车中,我有一个带有子页面about-uscontact-usindex

I need to create other pages without parents, but the page URLs are coming out like: 我需要创建没有父母的其他页面,但是页面URL如下所示:

my_host_url/sitename/index
my_host_url/sitename/index/about-us
my_host_url/sitename/index/contact-us

What I would like is to create a page structure like this: 我想要的是创建这样的页面结构:

my_host_url/sitename/live

ie without parent. 即没有父母。

在此处输入图片说明 if you are using wagon with locomotive you can use following command to generate pages 如果您将机车与货车一起使用,则可以使用以下命令生成页面

bundle exec wagon generate page live

or else you can simply create a page in app/views/pages/live.liquid and update the content accordingly 否则,您可以简单地在app / views / pages / live.liquid中创建一个页面并相应地更新内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM