On a Drupal 7 Site with Panels and Tokens I have a content-type for Events. For the "Page" (Panels) of a Event I like to add a hyperlink / button to add the event to the personal Google Calendar. This requires to build a hyperlink with some query-parameters in it. Eg:
<a href="http://www.google.com/calendar/event?action= TEMPLATE&text;=Brunch at Java Cafe&dates;=20060415T180000Z/ 20060415T190000Z&location;=Java Cafe, San Francisco, CA &details;=Try our Saturday brunch special:<br><br>French toast with fresh fruit<br><br>Yum!&trp;=true&sprop;= website:http://www.javacafebrunches.com&sprop;=name:Jave Cafe"> <img src="//www.google.com/calendar/images/ext/gc_button2.gif"> </a>
My approach is to create a custom block with "Full Html" and add the above snippet. Then add tokens like [node:title] that should get replaced with the node's title etc. Afterwards I add this block to the Events page (Panels). The problem is that the tokens don't get replaced.
Any idea how I can build this links the most easiest way?
Thanks for help, Marc
Update: Got one step forward: I don't use a block but a "Custom Content" pane from Panels. Within this replacement is supported. The problem I now have is that the date/time doesn't get formatted right. I use "date" field-type (Date module). Any idea how I can format that date correctly?