We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38497
    • 2 Posts
    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?
      • 4172
      • 5,888 Posts
      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?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 38497
        • 2 Posts
        Thx Bruno, i think i have found the problem. I was using a blank template for some testing. Once again, thank you.
          • 28042 ☆ 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
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org