Re: cal_mini.tpl adjustment
In the module settings for mini calendar, I thought the "Redirect page" setting controlled that.
No?
Maybe it just controls the details page when you click an event -- I forget. But try that first if you haven't already.
If not (or if I'm misunderstanding your question), are you familiar with customizing Contao templates? Where to put them and how to make your edits?
Re: cal_mini.tpl adjustment
Thanks for your reply.
I think, unless I am missing something... the redirect page is the page that gets displayed when you click a day at line 106 filted by "?day=20110704", but not when you click previous/next month it seems to reference whatever the current page it is on:
In modulecalendar.php
Line 145 : $objTemplate->prevHref = $this->strUrl
Line 159 : $objTemplate->nextHref = $this->strUrl
??
Unfortunately my knowledge of php is fairly limited, I get the feeling I'm going to have to learn!!
Many thanks.
Re: cal_mini.tpl adjustment
OK -- if that's the case you'll just need to customize the template.
Copy the "cal_mini.tpl" file into "/templates/yourThemeFolder/". Any changes you make here will override the default.
Once you open the file, the PHP is pretty trivial -- mostly just copying and pasting code from one place into another and maybe changing a few values if you have to.
If all else fails you can always hard code the page you want to go to into the template.
If you put the following in any template, it will output all of the template variables that you can use in them:
Code:
<?php $this->showTemplateVars(); ?>
Good luck!
Re: cal_mini.tpl adjustment
Thanks for the help.
I can't seem to make the adjustment by just customising the template partly because the template references modulecalendar.php I think. What I did was just replace "strUrl" with "strLink" in modulecalendar.php, which seems to work.
Many thanks.