CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Using Google Maps directly on Event Registration Page
Pages: [1]

Author Topic: Using Google Maps directly on Event Registration Page  (Read 1283 times)

lchanggt

  • Guest
Using Google Maps directly on Event Registration Page
January 08, 2009, 10:17:52 am
Hi,

I'm customizing the Event Registration Page to be able to display a small map of the location:
/civicrm/event/register?reset=1&id=1

I want to have the google mapkey available to the civicrm_template/CRM/Event/Form/Registration/Register.tpl

What's a good way to make this variable available to the template?  What would I need to query and what hook should I use to make that available?

Thanks,
--Leo

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using Google Maps directly on Event Registration Page
January 08, 2009, 10:48:02 am
Quote
I want to have the google mapkey available to the civicrm_template/CRM/Event/Form/Registration/Register.tpl

You can use {$config->mapAPIKey} in your tpl.

Hth

Kurund
Found this reply helpful? Support CiviCRM

lchanggt

  • Guest
Re: Using Google Maps directly on Event Registration Page
January 08, 2009, 11:53:26 am
Thanks! Is there anyway to access CiviCRM Objects within the smarty template?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using Google Maps directly on Event Registration Page
January 08, 2009, 01:39:59 pm
You can see what objects / values are exposed, by enabling debug (administer civicrm >> global settings >> debugging) and adding the GET param smartyDebug=1 to any url

We rarely expose entire objects to the smarty template. we mostly expose values that the template needs.

lobo
« Last Edit: January 08, 2009, 01:42:15 pm by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Using Google Maps directly on Event Registration Page

This forum was archived on 2017-11-26.