Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Return multiple modules
Return multiple modules
Return multiple modules
Hello all,
A simple question, but how do I show multiple modules when one condition is true, such as that below.
if (
$option == 'com_users'
and $view == 'login'
and $Itemid == NULL
) return 106;
if (
$option == 'com_users'
and $view == 'login'
and $Itemid == NULL
) return 105;
It only displays the first. How can I combine these results??
Thanks in advance
Alec
Re: Return multiple modules
Hello all,
I have looked further through the forum posts, but cannot find a way to do this. I am sure I have achieved this before. Modules 106, 105 (and possibly more) should be displayed on the same condition
$option == 'com_users'
and $view == 'login'
and $Itemid == NULL
How do I achieve this. Apologies if this is a beginners question..
Alec
Re: Return multiple modules
Easy - return both module ids, comma separated, in quotes.
e.g.
if (
$option == 'com_users'
and $view == 'login'
and $Itemid == NULL
) return "106, 105";
Cheers
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Return multiple modules
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:
- 122
- Online:
- boestreecare
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked