Event Tags PDF Print E-mail

Show:

Waiting for google calendar...

Additional information can also be added to events using tags.  This information can added to our template wherever desired.  In this example we add two more rows to our template to display information contained in these tags:

  1. <tr gcalmarkup.style.x="background-color:{gCalMarkup select=#DECA95|#FEEAB5};">
  2.   <td>{gCalMarkup iftag=distance1 Distances:}</td>
  3.   <td>{gCalMarkup tag=distance1}</td>
  4.   <td>{gCalMarkup tag=distance2}</td>
  5.   <td>{gCalMarkup tag=distance3}</td>
  6. </tr>
  7. <tr gcalmarkup.style.x="background-color:{gcalmarkup select=#deca95|#feeab5};">
  8.   <td>{gCalMarkup iftag=fee Fee:}</td>
  9.   <td colspan="4">{gCalMarkup tag=fee}</td>
  10. </tr>

These new rows contains two new gCalMarkup markup tags.  Line 3 contains the command {gCalMarkup tag=distance1}.  This command looks for a tag such as [distance1=5K] in the event description.  If it exists the text after the "=" in the tag will replace the command in the template.  The tag is removed from the event description (although it is not displayed in this example).  The same is true for the markup tags for distance2, distance3, and fee.

Line 2 contains another command,  {gCalMarkup iftag=distance1 Distances:}.  This command again looks for the "distance1" tag.  If the tag exists the text at the end of the command ("Distances:" in this case) will replace the command.  If the tag is not found the command is removed.  This command is used to conditionally display text.  i.e. "Distances:" will only be displayed if the [distance1=...] tag exists in the event description.

 

{gCalMarkup _eventMonth}/{gCalMarkup _eventDay} {gCalMarkup _eventTime} {gCalMarkup _eventTitle}
{gCalMarkup iftag=distance1 Distances:} {gCalMarkup tag=distance1} {gCalMarkup tag=distance2} {gCalMarkup tag=distance3}
{gCalMarkup iftag=fee Fee:} {gCalMarkup tag=fee}
{gCalMarkup _eventMonthText} {gCalMarkup _eventYear}
Last Updated on Sunday, 25 October 2009 15:17
 
Symmetric Designs and gCalMarkup are 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. gCalMarkup is not supported or warranted by the Joomla Project or Open Source Matters.