Hello there. İ need some help with a certain problem. How can i link a html page with a css file with modx evolution? To link a template with a css file it's very easy, but when let's say...i create a new resource, choose BLANK template and after hit ''EDIT HTML SOURCE'', insert the html code WITH the link to the css file....press submit and after....nothing changed. I mean, i have the html code...but not aranged by css. When i press again edit html source...it seems the link to the css file si gone. Any help pls?
I think you shouldn't try to add your html-structure with tinyMCE.
The richtext-editor is only meant to add content itself, not the whole page-html.
Is there a reason to use a BLANK template?
Thx Bruno, i think i have found the problem. I was using a blank template for some testing. Once again, thank you.
-
☆ A M B ☆
- 24,524 Posts
Just for information, if you need to have something that TinyMCE oh-so-helpfully removes or mangles in some way, put it in a chunk and then use the chunk's tags in TinyMCE.
If you need to specify a different .css file for different pages, use a TV to specify the .css file and use the TV's tags in the template's head
<link rel="stylesheet" href="assets/templates/mytemplate/[*stylesheet*].css" />
http://sottwell.com/tv-input-types.html