简体   繁体   English

包括Bootstrap到Typo3

[英]Include Bootstrap to Typo3

I worked with Typo3 4.5 and already have included the YAML CSS Framework with TemplaVoila. 我使用Typo3 4.5,并且已经在TemplaVoila中包含了YAML CSS框架。 But now I have installed Typo3 6.1 and want to include the Bootstrap Framework. 但是现在我已经安装了Typo3 6.1,并希望包含Bootstrap框架。 But I don´t know if it is better to use TemplaVoila or to use the normal Template. 但是我不知道使用TemplaVoila还是使用常规模板会更好。

And I am not quite sure how to include the Bootstrap framework. 而且我不太确定如何包括Bootstrap框架。 My first idea is to copy the framework files to fileadmin folder. 我的第一个想法是将框架文件复制到fileadmin文件夹。 Then include the css and js files that are in the docs/index.html (example file) to my TS Template and than I can create the HTML content. 然后将docs / index.html(示例文件)中的css和js文件包括到我的TS模板中,然后我可以创建HTML内容。

Or am I missing something? 还是我错过了什么?

Frontend template extensions that take over a large part of the template rendering can sometimes be confusing. 占据模板渲染很大一部分的前端模板扩展有时会造成混乱。 If you understand the rendered page template as the end product that's generated by the CMS, but not a part of the CMS's functionality, everything will become easier and more transparent (less black boxes). 如果您将呈现的页面模板理解为由CMS生成的最终产品,而不是CMS功能的一部分,则所有内容将变得更加容易和透明(黑匣子更少)。

My advice would be: don't use a framework extension, get bootstrap from github, ideally in the LESS version - use one of the many lessphp extensions to parse less while developing - and create your template in whichever templating system you're comfortable with. 我的建议是:不要使用框架扩展,不要从github获取引导程序,最好是在LESS版本中-在开发过程中使用许多lessphp扩展之一来进行较少的解析-并在自己喜欢的任何模板系统中创建模板。

不管您使用的是电视还是“标准”模板系统,只需在标题中包含Bootstrap,仅此而已。

在TYPO3官方主页上找到示例: http//bootstrap.typo3cms.demo.typo3.org/

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

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