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) »
  • exposing event template to views
Pages: [1]

Author Topic: exposing event template to views  (Read 15950 times)

miletus

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: drupal 7
  • MySQL version: 5.1.52
  • PHP version: 5.2.17
exposing event template to views
July 23, 2013, 04:54:39 pm
Hi,
I have the need to create standard event descriptions.   Ie, every month we have event 101, 102 and 103.   So I have created a description for each event, 101, 102, and 103 in three separate event templates .   I would like to display these descriptions in a view, but event template is currently not available in views.  Is there a way I can expose event templates to views?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: exposing event template to views
July 24, 2013, 04:27:33 am
I think you would have to use PHP code in your View template to get the CiviCRM event template file. Then you would have to process it as it's Smarty code. Not simple, but probably doable.

Alternatively, perhaps you could store the text in Drupal nodes and then load it from there in both places, i.e. the View and the CiviCRM event templates.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: exposing event template to views
July 24, 2013, 01:56:28 pm

You might want to take a look at the civicrm views integration code and potentially add support for event templates there

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) »
  • exposing event template to views

This forum was archived on 2017-11-26.