I'm using a lot of global content inside the modules to help with the "modularity" for the development process.
For example, I'f I'm using rounded corners there's a bunch of divs to go through, and it can get really messy to have all of that in a template, especially while you're still working out the details or have a few different templates that rouse a lot of the code.
So... it would be nice to have these template chunks, and be able to import/export with the main template.
Also there could be an option to cache the templates/template chunks with all the the chunks when the template or the chunk is updated so there's not so many calls during page render.
anyway I think I'm on to something here, but would like to hear either some support on this or your thoughts on this.
I realize this is not critical. I can keep using the global content block, but that can't be the best way to do this.
anyhow, I'm used to modx, and working certain way with a cms, but I think modx is a bit of an overkill for some projects, so simplicity in a cms (especially from the client/editor side) is welcome.
template chunks anyone?
Re: template chunks anyone?
Put it in a properly named separate template. You can have as many templates as you want. You can also have one template overriding another. Am I missing something?
Re: template chunks anyone?
I guess it's me missing something
how do I call another template from inside a template ?
I tried
{template name='___'}
but that didn't work...
how do I call another template from inside a template ?
I tried
{template name='___'}
but that didn't work...