Umbraco 临时页面
Umbraco temporary page
我正在构建一个 Umbraco 7.4.3 站点,结果遇到了这种情况。
我在 Umbraco 中有一个像这样的节点结构。
所以,我在 Home 下有一个 Student 和 Teacher 节点。
学生节点将显示有关学生的详细信息。
现在我想要一个可以编辑学生的页面,"I want a separate page (not popup) linking to a page where I can edit a student",类似于 /edit-student/?id=2.
但为了做到这一点,我将以这样的结构结束,请参见屏幕截图
看到了吗?我有一个额外的节点 EditStudent 只是为了有一个我可以编辑学生的页面,我可以通过 /Student/EditStudent/?id=2
调用这个页面
但是我不想拥有这个节点"EditStudent",我觉得它让我的节点结构变脏了。
我想要一个解决方案我仍然可以有这样的url /Student/EditStudent/?id=2 但我不想看到Student 下的节点 "EditStudent" 或我的 Umbraco 中的其他地方。
这可能发生吗?类似于虚拟 url(但不是 aspx)页面。
找到我在 our.umbraco.org 论坛上发布的答案。
创建一个模板,我命名为"Edit",然后就可以这样访问了url:/Student/Edit/,当然还可以加参数
如果在 Student 下找不到其他节点名称 "Edit",那么它将使用 "Edit" 模板作为替代。
我正在构建一个 Umbraco 7.4.3 站点,结果遇到了这种情况。 我在 Umbraco 中有一个像这样的节点结构。
所以,我在 Home 下有一个 Student 和 Teacher 节点。
学生节点将显示有关学生的详细信息。
现在我想要一个可以编辑学生的页面,"I want a separate page (not popup) linking to a page where I can edit a student",类似于 /edit-student/?id=2.
但为了做到这一点,我将以这样的结构结束,请参见屏幕截图
看到了吗?我有一个额外的节点 EditStudent 只是为了有一个我可以编辑学生的页面,我可以通过 /Student/EditStudent/?id=2
调用这个页面但是我不想拥有这个节点"EditStudent",我觉得它让我的节点结构变脏了。
我想要一个解决方案我仍然可以有这样的url /Student/EditStudent/?id=2 但我不想看到Student 下的节点 "EditStudent" 或我的 Umbraco 中的其他地方。
这可能发生吗?类似于虚拟 url(但不是 aspx)页面。
找到我在 our.umbraco.org 论坛上发布的答案。
创建一个模板,我命名为"Edit",然后就可以这样访问了url:/Student/Edit/,当然还可以加参数
如果在 Student 下找不到其他节点名称 "Edit",那么它将使用 "Edit" 模板作为替代。