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
- » jreviews page with different fields
jreviews page with different fields
jreviews page with different fields
I have a page with this in the adv debug:
if (
$option == 'com_jreviews'
and $Itemid == '438'
and JRequest::getVar('url') == 'tag/specialties/Dentistry' /*!*/
and JRequest::getVar('cat') == '62'
) return XXX;
How do I set a case where if the URL contains "Dentistry" return 433 or if it contains "Medicine" return 432;?
I have a lot I need to do, thanks for any help.
31-Oct-12 15:19:28
Re: jreviews page with different fields
Try this:
if (
$option == 'com_jreviews'
and $Itemid == '438'
and JRequest::getVar('cat') == '62'
) {
$url = JRequest::getVar('url');
if ($url == 'tag/specialties/Dentistry') return 433;
if ($url == 'tag/specialties/Medicine') return 432;
if ($url == 'tag/specialties/Foo') return XXX; // replace XXX with module id...
// etc.
}
Hope that helps,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » jreviews page with different fields
Board Info
- Board Stats:
- Total Topics:
- 1700
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 8056
- Newest User:
- no21an
- Members Online:
- 0
- Guests Online:
- 267
- 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