We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36597
    • 7 Posts
    Hello,

    I've created a Template and insert something like:

    [[$theheader]]
    [[$main]
    [[$thefooter]]


    then I've created the three chunks for that and place the html code in this chunks. After that I open myhomepage.com and everything will build together :O gr8 thing

    Now my questions:

    1. Are this chunks saved in the database? so that i didnt need any .html files in my folders on the webspace?

    2. Is this working with css files too?

    3. And if this chunks are saved in the database is this faster as if i have .html files in my folders and minimize it via the ant build?

    Hope someone can help me with this questions

    -Kind Regards

      • 28042 ☆ A M B ☆
      • 24,524 Posts
      1. Yes.
      2. No, unless you use a resource as your CSS file source.
      3. Maybe. Chunks, templates and snippets are all cached as well as being stored in the database, and get loaded into memory from cache every time a resource is parsed, so it's pretty much optimized as it is.
        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
        • 36597
        • 7 Posts
        Thx, so I have to optimize javaScript and css only ^^ Thats a gr8 thing