Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » Daily roll, switch by hour or every...
Daily roll, switch by hour or every 4# hour
Re: Daily roll, switch by hour or every 4# hour
Hi foolevil,
Documentation:
There's a guide for MetaTemplate Pro which covers all the basics of MetaTemplate as well - http://www.metamodpro.com/metatemplate/documentation
The main difference between MT and MTP is that in MT you have to code most things in PHP.
Thankfully the PHP is relatively simple thanks to a system that's part of MT called JomGenius. This gives some much simplified ways of dealing with date & time (in your case), and much more besides.
There are examples of date/time things on the JomGenius page: http://www.metamodpro.com/jomgenius/parameters
Also, there's a page of "recipes" for date and time things. The page was written for MetaMod (which deals with modules), but almost exactly the same code works for MetaTemplate as well. At the end of each rule, instead of using "return XXX;" (where XXX is a module id), you just need to use "return true;" to make the rule succeed, or "return false;" to make the rule fail.
See here: http://www.metamodpro.com/metamod/recip … time-rules
I hope that gets you going. Please post back with examples of what you're using, and an explanation of what you want to achieve, if you want help with it.
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » Daily roll, switch by hour or every...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7622
- Newest User:
- boestreecare
- Members Online:
- 1
- Guests Online:
- 121
- Online:
- boestreecare
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked