How to build a dynamic hyperlink within a Page (Panels)? 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:

&lt;a href="http://www.google.com/calendar/event?action=
  TEMPLATE&amp;text;=Brunch at Java Cafe&amp;dates;=20060415T180000Z/
  20060415T190000Z&amp;location;=Java Cafe, San Francisco, CA
  &amp;details;=Try our Saturday brunch special:&lt;br&gt;&lt;br&gt;French
  toast with fresh fruit&lt;br&gt;&lt;br&gt;Yum!&amp;trp;=true&amp;sprop;=
  website:http://www.javacafebrunches.com&amp;sprop;=name:Jave Cafe"&gt;

  &lt;img src="//www.google.com/calendar/images/ext/gc_button2.gif"&gt;
&lt;/a&gt;


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?
You would want to override the template for the content type you're using, in your theme. If you're using a base theme, copy the node template into your theme and then change it there (don't change the base theme directly). More info on phptemplate and theming is on Drupal.org.

If you don't code, doing this in a View would work. Here's what I would do:


Create a content type with plain text fields for all the things you need to make dynamic (if you haven't already done this)
Create a View that only displays one item at a time.
I'm not sure what your setup is exactly like, so it may take some creativity to filter it to display the right one. You might want to try something like References to relate an Event node to your particular node of your new content type, or configure some contextual filters to pick the right values based on the URL of the Event page, or something. 
Have your View create a Block and have that Block display on Event nodes
Configure your View to rewrite output of a field and make all other fields excluded from display. Views seems to have the peculiarity of only allowing you to use tokens from fields that were added to the display before the field being rewritted so use the last one added. 
????
PROFIT


But that's a ton of work. You're better off going with the phptemplate option.