gpt4 book ai didi

TYPO3 onepager + 普通页面结构

转载 作者:行者123 更新时间:2023-12-01 10:04:03 27 4
gpt4 key购买 nike

我是 TYPO3 的新手,我在实现以下方面时遇到了问题:

一个网站结构看起来像这样

-家

—子内容1

——子内容2

—子内容3

——等等。

-第 1 页

-第 2 页

-等...

主页应该包含“sub content 1”、“sub content 2”和“sub content3”,所以它应该表现得像一页纸。其他页面应该表现为“正常”页面。

我下载了 FluidTypo3 kickstarter 包。然后遵循本教程:https://worksonmymachine.org/blog/onepage-design-with-fluidtypo3其中描述了如何使用 FluidTypo3 实现单页纸。到目前为止,我设法得到了这个结果:

-根

—子内容1

—子内容2

—子内容3

一旦我添加了一个新关卡:

-根

—家

——子内容1

——子内容2

Onepager 效果停止运行,不再收集子页面。我确实在“编辑页面”下配置了应该使用哪个模板,但没有成功。

我一直卡在这一步,不明白为什么它不起作用?想法?

我安装了 Typo3 6.2。

最佳答案

问题很简单:您已在菜单中添加了一级,因此您的旧页面结构不再正确。你用一个

v:page.menu

而且它应该有正确的页面结构访问点。

如果您检查 specification of this ViewHelper , 你找到了

entryLevel

然而规范只说:

Optional entryLevel TS equivalent of the menu (integer)

您需要进行更多搜索以了解其工作原理,如果您看到 TypoScript documentation for HMENU然后你会看到它是如何工作的:

Defines at which level in the rootLine the menu should start.

Default is "0" which gives us a menu of the very first pages on the site.

If the value is < 0, entryLevel is chosen from "behind" in the rootLine. Thus "-1" is a menu with items from the outermost level, "-2" is the level before the outermost...

(你已经在评论中得到了帮助,但我想在这里写一个基于反馈的答案)

关于TYPO3 onepager + 普通页面结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30693675/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com