Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Metamod Weekdays
Page:
1
Metamod Weekdays
Administrator has disabled public posting
Re: Metamod Weekdays
Hi gmusik,
this is nice and easy
Using MM_DAY_OF_WEEK will return the day of week, 0=Sunday, 6=Saturday
if (MM_DAY_OF_WEEK == 1) return 101;
if (MM_DAY_OF_WEEK == 2) return 102;
if (MM_DAY_OF_WEEK == 3) return 103;
// etc.
Replace 101, 102, 103 etc with the module ids of the module to display for each day, as appropriate.
Remember to set up the target modules (101, 102, 103 etc, whatever the ids are) to NOT show on any menu items. In that way they will still show up when included by the code above, but won't show up otherwise. (and that's the way you want it!)
Best regards
Stephen
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Metamod Weekdays
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7627
- Newest User:
- rudys68879
- Members Online:
- 0
- Guests Online:
- 183
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked