Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying module only at frontpage...
Displaying module only at frontpage of phoca gallery
Displaying module only at frontpage of phoca gallery
Hi
I'm not a programmer, unfortunately, so it's hard for me to understand how to make it by using MetaMod
I need to display module in certain position only on the frontpage of phoca gallery (frontpage of phoca gallery also called "List Of Categories (Categories View")
I've saw codes that probably could solve my problem, but I don't know how to detect frontpage of phoca gallery
Other possible solution is to display module only when "Gallery" selected in menu. It could be done in fact without MetaMod. But in that case module will be displayed on other pages of phoca gallery (while viewing certain category, for example)
I'll be very thankful for any kind of help.
I'm using Joomla 1.7
Re: Displaying module only at frontpage of phoca gallery
Hi ArmorDarks,
that's a great question - I understand what you mean.
Can I suggest that you turn on MetaMod Advanced Debug mode, and assign the MetaMod to ALL pages.
Then, visit the "front page" of Phoca Gallery, plus a selection of the inner pages.
On each page, take a copy of the output from the MetaMod, and post it in this forum along with a description of which page you were viewing?
Then I can recommend some PHP to use.
Thanks,
Stephen
Re: Displaying module only at frontpage of phoca gallery
So, I didn't thought that it's so simple
Here we go:
frontpage:
Module ID: 92
$option: com_phocagallery
$view: categories
$id:
$Itemid: 207
$timezone: UTC
$language: ru
$language_code: ru
$language_region:
Including modules: not found
while viewing category (subcategory has same output, but different id of course):
MetaMod debug info:
Module ID: 92
$option: com_phocagallery
$view: category
$id: 1:kateogriya-1
$Itemid: 207
$timezone: UTC
$language: ru
$language_code: ru
$language_region:
Including modules: not found
Also looks like finally I've found code that I've needed:
if ( $option == "com_phocagallery" and $view == "categories" ) return 91;
and it works!
thanx!
- Index
- » MetaMod
- » MetaMod General Support
- » Displaying module only at frontpage...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7638
- Newest User:
- moner86658
- Members Online:
- 0
- Guests Online:
- 173
- 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