Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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

ArmorDarks
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

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! smile

thanx!

ArmorDarks
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Displaying module only at frontpage of phoca gallery

Advanced Debug mode in MetaMod really rocks!

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Displaying module only at frontpage of phoca gallery

yeah, and your support rocks too! Thanx once again smile

ArmorDarks
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
138

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