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) »
  • URL & Event title tokens for CiviEvent templates?
Pages: [1]

Author Topic: URL & Event title tokens for CiviEvent templates?  (Read 1936 times)

f4f

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
URL & Event title tokens for CiviEvent templates?
March 09, 2010, 11:09:23 am
We'd like to add a Facebook 'share' button on the 'Thank you' page that CiviEvent generates.

The Facebook widget uses two variables: u=<url> and t=<title>
(http://www.facebook.com/facebook-widgets/share.php)

Are there template tags/tokens available for the CiviEvent templates for event URL and title?

I've seen lists of tokens for contact information, but nothing for events. Looking in the code for the Civicrm Drupal events block there are references to: {$ev.url} & {$ev.title}

Thanks in advance!


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: URL & Event title tokens for CiviEvent templates?
March 09, 2010, 12:54:37 pm

you can get the

event title: {$event.event_title}

event url: {crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}

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

f4f

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: URL & Event title tokens for CiviEvent templates?
March 09, 2010, 04:43:59 pm
Thanks Lobo!

I tried adding those to the footer of the Thank-you Screen > Footer Text as a test:
Code: [Select]
Title: {$event.event_title}
Link: {crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}

But the tokens were not replaced when the Thank you page was generated, CiviCRM just printed the same code as above.

Do I need to wrap that in some other tags/markup?

Are these tokens & usage listed anywhere?

f4f.


« Last Edit: March 10, 2010, 02:55:24 am by f4f »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • URL & Event title tokens for CiviEvent templates?

This forum was archived on 2017-11-26.