[英]Add a new less file in bootstrap package extension on typo3
I need to add a new style in typo3 but with less file, because I am using the bootstrap package theme in typo3 (v7.4.0) and this template use the less files and later compress all in one file with @import method and convert in .css file. 我需要在typo3中添加一种新样式,但要使用较少的文件,因为我在typo3(v7.4.0)中使用了bootstrap软件包主题,并且此模板使用了较少的文件,后来使用@import方法将其压缩为一个文件并转换为.css文件。
So the problem is: I upload some new file in less using filelist: bootstrap-package/Resources/Public/Less/Theme and later use the @import method in theme.less file but after of that, my new style not appear. 所以问题是:我用较少的文件列表来上传一些新文件:bootstrap-package / Resources / Public / Less / Theme,后来在theme.less文件中使用@import方法,但是之后,我的新样式就没有出现。
I cleaned the cache, I changed many constants configuration for see some change but nothing yet. 我清理了缓存,更改了许多常量配置,以查看是否有更改,但是什么也没有。
Any idea what could be happening? 知道会发生什么吗?
i tried to add a new less file, named my.less then used a variable to change h1 heading. 我试图添加一个名为my.less的新文件,然后使用变量更改h1标题。 I inserted the variable within the variables.less file located in the folder
我将变量插入了文件夹中的variables.less文件中
../Theme/
then changed the access to allow the access from apache: 然后更改访问权限以允许来自apache的访问:
`chmod 0775 my.less`
`chown apache:apache my.less`
and inserted it adding a line within theme.less as follows: 并将其插入并在theme.less中添加一行,如下所示:
@import "typo3_form.less";
@import "my.less";
saved / cleared the cache and it works. 保存/清除缓存,它可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.