- Posts: 25
- Thank you received: 0
OS Property support center
SOLVED !!! How to get Detail View parameter?
- c8x
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 1 month ago - 10 years 1 month ago #60156
by c8x
SOLVED !!! How to get Detail View parameter? was created by c8x
Hi,
Im on Joomla 3.x. I need to show some Joomla modules on the OSProperty list view and some different on the detail view.
1.
It works so far with list view, using this detect function:
$option = JRequest::getVar('option', null);
$view = JRequest::getVar('view', null);
$task = JRequest::getVar('task', null);
$layout = JRequest::getVar('layout', null);
and then in my Joomla template:
if(($option == 'com_osproperty') && ($view == 'ltype')){ ?> ........
2. I've tried the same with detail_view , but there is no "view type", just "task" only.
if(($option == 'com_osproperty') && ($task == 'property_details')){ ?>.....
but it works only with Joomla Config SEF OFF.....if I turn sef on, it doesnt work....
Could you please help?
regards
Im on Joomla 3.x. I need to show some Joomla modules on the OSProperty list view and some different on the detail view.
1.
It works so far with list view, using this detect function:
$option = JRequest::getVar('option', null);
$view = JRequest::getVar('view', null);
$task = JRequest::getVar('task', null);
$layout = JRequest::getVar('layout', null);
and then in my Joomla template:
if(($option == 'com_osproperty') && ($view == 'ltype')){ ?> ........
2. I've tried the same with detail_view , but there is no "view type", just "task" only.
if(($option == 'com_osproperty') && ($task == 'property_details')){ ?>.....
but it works only with Joomla Config SEF OFF.....if I turn sef on, it doesnt work....
Could you please help?
regards
Last edit: 10 years 1 month ago by Mr. Dam.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 1 month ago #60209
by Mr. Dam
Replied by Mr. Dam on topic How to get Detail View parameter?
Hi,
Can you please explain "It doesn't work", you need to put the break point to see if the variable "option" or "task" are empty or not.
Thanks
Dam
Can you please explain "It doesn't work", you need to put the break point to see if the variable "option" or "task" are empty or not.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- c8x
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
10 years 1 month ago #60217
by c8x
Replied by c8x on topic How to get Detail View parameter?
working with joomla templates you have the possibility to display some things (f.ex. module positions) depends of current component view / layout / task, etc...
is useful in case, some contents/components doesnt have menulink,so can manage any module , to display on it or not.
using JRequest (J.25) or JFactory::getApplication()->input in J 3.x you can call some parameters of component view .
$view = $jinput->getCmd('view', '');
$layout = $jinput->getCmd('layout', '');
$task = $jinput->getCmd('task', '');
etc....
i was looking for a solution to show module on property list only, but not in detail view.
is useful in case, some contents/components doesnt have menulink,so can manage any module , to display on it or not.
using JRequest (J.25) or JFactory::getApplication()->input in J 3.x you can call some parameters of component view .
$view = $jinput->getCmd('view', '');
$layout = $jinput->getCmd('layout', '');
$task = $jinput->getCmd('task', '');
etc....
i was looking for a solution to show module on property list only, but not in detail view.
Please Log in or Create an account to join the conversation.
- c8x
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
10 years 1 month ago #60218
by c8x
Replied by c8x on topic How to get Detail View parameter?
working with joomla templates you have the possibility to display some things (f.ex. module positions) depends of current component view / layout / task, etc...
is useful in case, some contents/components doesnt have menulink,so can manage any module , to display on it or not.
using JRequest (J.25) or JFactory::getApplication()->input in J 3.x you can call some parameters of component view .
$view = $jinput->getCmd('view', '');
$layout = $jinput->getCmd('layout', '');
$task = $jinput->getCmd('task', '');
etc....
i was looking for a solution to show module on property list only, but not in detail view.
Anyway , I found already a solution,
thanx anyway:)
is useful in case, some contents/components doesnt have menulink,so can manage any module , to display on it or not.
using JRequest (J.25) or JFactory::getApplication()->input in J 3.x you can call some parameters of component view .
$view = $jinput->getCmd('view', '');
$layout = $jinput->getCmd('layout', '');
$task = $jinput->getCmd('task', '');
etc....
i was looking for a solution to show module on property list only, but not in detail view.
Anyway , I found already a solution,
thanx anyway:)
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.