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) »
  • {action.forward}
Pages: [1]

Author Topic: {action.forward}  (Read 582 times)

Owen

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
    • Leukaemia & Lymphoma Research
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: -
  • PHP version: -
{action.forward}
July 25, 2012, 08:26:02 am
Afternoon Civillians,

I'm in the process of the slow migration to Civimail. I'm using {mailing.viewUrl} to create an online version which is all fine and dandy.

However I'm also using {action.forward} to create a "forward to a friend" link, this is fine from the inbox but the link is preserved in the online version, when clicked from there it throws an error on the landing page as it's missing the parameters 'jid' and 'qid'

Is there something I can add to links to pull this information or is there some kind of tag like <exclude from web version> </>

Cheers,

Owen.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: {action.forward}
July 25, 2012, 09:22:27 am

so the viewURL does not have a valid jid/qid and hence the error. A couple of options:

1. Fix the landing script so it throws a better error message

2. Eliminate that token from the viewURL renderer.

Would be great if you can submit a patch for either option

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Owen

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
    • Leukaemia & Lymphoma Research
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: -
  • PHP version: -
Re: {action.forward}
July 25, 2012, 09:27:32 am
Will see what we can do after D7 upgrade and Drupal commerce integration, will have to kick to the long grass for now and remove "forward to a friend"

nem

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
Re: {action.forward}
August 06, 2012, 08:43:38 pm
Hi!
I have a similar problem.

If I want to do the #2 option (2. Eliminate that token from the viewURL renderer. ), what should I do? I am new to Civi/Drupal.

Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: {action.forward}
August 06, 2012, 10:11:06 pm

Might want to start off by reading: http://book.civicrm.org/developer/

and then making modifications to the needed files

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • {action.forward}

This forum was archived on 2017-11-26.