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) »
  • Formatting event location address in rss feed.
Pages: [1]

Author Topic: Formatting event location address in rss feed.  (Read 454 times)

keith.s.messina

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Joomla! 1.6
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Formatting event location address in rss feed.
May 26, 2011, 10:59:29 am
I am trying to integrate an "upcoming events" feed into the website for my organization using Joomla! 1.6 and the default rss feed plugin. Originally the date and the address run together on one line, although I have been able to figure out how to format the date the way I wanted. The problem is that the {$event.location} token doesn't seem to be able to be formatted in the same way as the date token.

Basically I want to have the address formatted like:

{Street Address}
{City}, {State} {Zip}

but the current output is formatted as:

{Street Address} {City}, {State} {Zip} {Country}

For the street address portion, for example, I've tried to change the event location display token in the .tpl file from {$event.location} to {$event.location.street_address}, {$event.location.1.street_address}, {$event.location.$tokenId.street_address}, {$event.street_address}, and {$event.location.street-address}, to no avail.

Is there some kind of formatting option like the date token has that I am missing, or maybe a way to just grab each component of the event's location separately like I was attempting to do with the street address?

Thank you.
« Last Edit: May 26, 2011, 01:15:11 pm by keith.s.messina »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Formatting event location address in rss feed.

This forum was archived on 2017-11-26.