0
votes

I am using this typoscript in my Page TS Config to add a stylesheet to the RTE:

RTE.default.ignoreMainStyleOverride = 1
RTE.default.contentCSS = fileadmin/templates/css/rte_formats.css

I have used this several times perfectly, however I am working on a new server running TYPO3 7.6.11 and the stylesheet does not link.

If I inspect the RTE the css file is linked there, but the link is broken.

I don't know if it is related but in the filelist area if I open the info window for the css file and click the 'Show' button I get a 404 (the same happens for every file, even though they are working fine on the front end).

2
Is the file really located where it should be? There is nothing wrong with your ts, I have an identical setup and this definitely works.mtness
@mtness Yes, I have triple checked the the path is correct and the file is intact. If I try typing the direct url to the file in the browser it doesn't work either...?user500665
The file needs to be accessable by the browser else it will not work.minifranske
@minifranske And how does one make it accessible to the browser?user500665
Just open it in your browser and make sure it shows :) so open your domain/fileadmin/templates/css/rte_formats.css if it doesn't show the path is wrong or some server setting prevents it from being shown.minifranske

2 Answers

0
votes

Strange, file show info also adds the /typo3/ before the fileadmin part but the files are listed in the filelist? What result do you get when you use RTE.default.contentCSS = fileadmin/templates/css/rte_formats.css

0
votes

Frontend and Backend need to be completely accessible. A configuration where server.com has no access to fileadminand mysite.com with no access to typo3 is not supported. Both folders hold viable resources for Frontend and Backend.