VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
CHECK OUT OUR PAGE ON GOOGLE +
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Is it possible to show the map in a different page
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Is it possible to show the map in a different page

Is it possible to show the map in a different page 14 Apr 2015 17:08 #6529

Is is possible to show the map in a different page than the contact page?
As I'm using JM Contact (I need attachment support) the map won't show if the page is not the contact page
many thanks

  • Posts:15
  • klu224
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Is it possible to show the map in a different page 15 Apr 2015 03:43 #6534

You can check itemid to show the map. Modify template file index.php:
 
<?php if (JRequest::getVar('option') == 'com_contact' && $this->params->get('map')) : ?>
 

to
 
<?php if ((JRequest::getVar('option') == 'com_contact' || JRequest::getVar('Itemid') ==120) && $this->params->get('map')) : ?>
 

 
<?php if(JRequest::getVar('option') == 'com_contact') : ?>
 

to
 
<?php if(JRequest::getVar('option') == 'com_contact' || JRequest::getVar('Itemid') ==120) : ?>
 


joomfreak

  • Posts:2144
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Is it possible to show the map in a different page 20 Apr 2015 15:40 #6571

So
JRequest::getVar('Itemid')
120 is the ID of the menu item i want the map to be in?

  • Posts:15
  • klu224
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Is it possible to show the map in a different page 21 Apr 2015 02:41 #6574

So
JRequest::getVar('Itemid')
120 is the ID of the menu item i want the map to be in?

Exactly

joomfreak

  • Posts:2144
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.69 seconds

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.