[英]Typo3 / blank Templates
I'm a greenhorn with typo3 templating. 我是一个有typo3模板的新手。 Actually I'm using "bootstrap_package" (standard layout).
实际上,我正在使用“ bootstrap_package”(标准布局)。 I would like to create a sub-page without logo, menu and footnote.
我想创建一个没有徽标,菜单和脚注的子页面。 I just want to have the content elements on a blank page.
我只想将内容元素放在空白页上。 How do I do this?
我该怎么做呢? Can anyone help me?
谁能帮我?
Best regards 最好的祝福
cgroughy cgroughy
You should give some more information why you need such a special rendering to get some more detailed help. 您应该提供更多信息,为什么需要这样的特殊渲染以获得更详细的帮助。
The usual reasons for such a page are design flaws as there are more suitable solutions inside TYPO3. 出现此类页面的常见原因是设计缺陷,因为TYPO3内有更多合适的解决方案。
In general: You need to create a new page rendering, where you switch off the generation of the HTML header. 通常:您需要创建一个新的页面呈现,在其中您将关闭HTML标头的生成。
add on: 添加在:
make a page where you collect all the pages which should be available in this special rendering. 制作一个页面,在其中收集所有可以在此特殊渲染中使用的所有页面。 This page should be a subpage from your root-page.
该页面应该是您的根页面的子页面。 regarding relaurl:
[x] exclude from path
关于relaurl:
[x] exclude from path
in this page create a typoscript template record. 在此页面中创建一个排印模板记录。
as these pages need only one rendering I propose to modify the default page object instead of creating a new page object (with a new typeNum
). 因为这些页面仅需要一个渲染,所以我建议修改默认页面对象,而不是创建新的页面对象(使用新的
typeNum
)。
in the setup field of this template record remove all headers with: 在此模板记录的设置字段中,删除带有以下内容的所有标题:
config.disableAllHeaderCode = 1
You might need to disable further CSS and JS, especially if they are loaded at the end of the page. 您可能需要禁用其他CSS和JS,尤其是在页面末尾加载它们时。
if you need another html-markup than the default you can modify the configuration here: wraps, (fluid-)templates, ... 如果您需要除默认值以外的其他html标记,则可以在此处修改配置:wraps,(fluid-)templates,...
Then add your special pages with content. 然后添加带有内容的特殊页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.