I’m trying to set up some chunks so I can start to work on a new template for the calendar, the problem I’m having (and it’s probably my own idiocy) is that I can’t seem to use my newly created chunk.
My chunk is called ’calTemplate’ and I want to assign this to the tplTemplate variable. Now, this is probably where I’m going wrong, as I’m calling this inside the snippet using:
$tplTemplate=$modx->getChunk('calTemplate');
Now, if I include this before the new Calendar has been created, I get a blank page when I go to my calendar page. If I include it after the Calendar has been created, it defaults to the template chunks set through the calendar class.
Any advice on this would be brill as I think I’m on one of my "let’s make it more complicated than it really is" trips.
Thanks, Garry