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 CiviMail (Moderator: Piotr Szotkowski) »
  • html image map and tokens
Pages: [1]

Author Topic: html image map and tokens  (Read 504 times)

timfluhr

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
html image map and tokens
April 19, 2012, 01:31:44 pm
Hi all.

We would like to include a footer image that our graphic designer created in all of our civicrm mailings.  We are able to use html map tags to include clickable links to our website, but I am having trouble getting the action.optOut token to work as a clickable link using the map tag.  Here is my code:

Code: [Select]
<img src="http://drupaldev.povertylaw.org/sites/default/files/images/newsletters/ShriverFooter_600x100.jpg" alt="Sargent Shriver National Center on Poverty Law" border="0" usemap="#Map" /></th>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="429,56,589,74" href="{action.optOut}">
  <area shape="rect" coords="10,6,192,71" href="http://www.povertylaw.org">
</map>

If I substitue action.optOut with action.optOutUrl the link works.  Otherwise, with code above, no clickable link is rendered.  Anyone have any thoughts on this?

Thanks.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: html image map and tokens
May 02, 2012, 10:25:50 am
I think action.optOut is a link for emails, not for a URL.  If action.optOutUrl works, then is there a problem?  Why the peference for action.optOut?

Sorry but image maps are generally disabled by the receipient's email client anyway, not a great idea.  If you must have clickable images (which I don't suggest) then make them separate.
« Last Edit: May 02, 2012, 10:27:42 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • html image map and tokens

This forum was archived on 2017-11-26.