Hey!
Is there a way to load a chunk from a file? In the same way many people are loading template files using following code and appropriate snippet
[!includeFile? &file=`assets/templates/gls/index.php`!]
I’d like to keep all my code in files
Thanks in advance
You could call the chunk through a TV: @FILE /html_root_folder/path/to/file.chunk
http://wiki.modxcms.com/index.php/%40FILE_Binding
works like charm! thanks a lot for that!:)
cheers!