Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Module displays on all pages when...
Module displays on all pages when defining with php
Module displays on all pages when defining with php
Hi there, I confess I'm a novice but have attempted to restrict the display of a specific module to a single page. I am using Cobalt 3 and needed to identify the page using the advanced debugger. I copied the php and pasted it into the module, then changed the module number to the one I require.
If I set the menu assignment to none, the module obviously doesn't show on any page, including the one designated in the php script. If I set to all, it shows in all. I have tried setting to all except those selected then selecting all but that doesn't help either.
Please can you assist. This is really critical for me and I'm now delaying my site live testing until I can resolve this.
I would really appreciate your urgent attention.
Thanks,
Jude
Re: Module displays on all pages when defining with php
Well, perhaps I'm losing my mind, but it no longer works
It is now displaying on the "home page" (category) but not on the submission form. I checked the page code.
The correct one is:
if (
$option == 'com_cobalt'
and $view == 'form'
and $jinput->get('section_id') == '1' /*!*/
and $Itemid == '306'
and $jinput->get('cat_user_id') == '506' /*!*/
and $jinput->get('type_id') == '1' /*!*/
and $jinput->get('return') == 'aHR0cDovL3d3dy5jbGFzc2ljcm9tYW5jZXJldml2YWwuY29tL2NvbXBvbmVudC9jb2JhbHQvdXNlci1pdGVtcy9jcmVhdGVkLzEtbGlicmFyeS81MDYtanVkYWgtcmFpbmU'
) return 128; /* replace XXX with the module ID or position to display */
That is what is in the module php, and it matches the page debug info.
The page that it displays incorrectly on is:
if (
$option == 'com_cobalt'
and $view == 'records'
and $jinput->get('section_id') == '1' /*!*/
and $Itemid == NULL
and $jinput->get('limitstart') == '0' /*!*/
and $jinput->get('user_id') == '506' /*!*/
and $jinput->get('view_what') == 'created' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */
(Of course, the return xxx would be return 128)
I simply cannot understand why it seems to be ignoring the php in the module and displaying on the category / section page?
I'm desperate, having expended a great time on trying to resolve this. Your help would be appreciated.
Thank you
Jude
Re: Module displays on all pages when defining with php
Hi there - don't see any place to highlight this as critical. I do understand that it's weekend, and therefore I will only get a response by tomorrow at the earliest. But this is holding up my site and it's my unfortunate position to only be able to work on the site after hours.
My request is only that this be treated as critical as and when your support team is back on duty after the weekend.
Many thanks,
Jude
Re: Module displays on all pages when defining with php
I do understand that it's weekend, and therefore I will only get a response by tomorrow at the earliest. But this is holding up my site and it's my unfortunate position to only be able to work on the site after hours.
[[admin: removed spam link]]
Re: Module displays on all pages when defining with php
- Index
- » MetaMod
- » MetaMod General Support
- » Module displays on all pages when...
Board Info
- Board Stats:
- Total Topics:
- 1700
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 8052
- Newest User:
- maarie443
- Members Online:
- 0
- Guests Online:
- 356
- 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