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 Profiles (Moderator: Dave Greenberg) »
  • Smarty tags not working anymore after update
Pages: [1]

Author Topic: Smarty tags not working anymore after update  (Read 1207 times)

janus

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Smarty tags not working anymore after update
April 05, 2011, 12:23:36 pm
Hi all,
I have a custom template to display profile info and up till version 3.1 I it worked using for example {$profileFields_3.custom_34.value}
After upgrading to 3.3 the template does not display the info anymore, the smarty tags seem to have been broken. If i do a {foreach from=$row item=value key=rowName name=profile} I see all the profile info.
Any ideas?
Cheers,
Adriaan

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Smarty tags not working anymore after update
April 05, 2011, 03:24:48 pm
Adriaan:

It is possible that from 3.1 to 3.3 there might have be few changes to code base and also in template. So I would suggest you should check how variables are assigned in smarty using smartyDebug and accordingly fix your code in template.

Hth
Kurund
Found this reply helpful? Support CiviCRM

janus

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Smarty tags not working anymore after update
April 06, 2011, 05:18:01 am
Thnx Kurund Jalmi,

I found that using {$ProfileFields.custom_34.value} now works but how can I specify the profile number then?

Cheers,
Adriaan

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Smarty tags not working anymore after update
April 06, 2011, 10:27:12 am
Quote
how can I specify the profile number then?
Profile id is  {$groupID}

Kurund
Found this reply helpful? Support CiviCRM

janus

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: Smarty tags not working anymore after update
April 06, 2011, 12:10:32 pm
Yep, I found {$GID} works as well. The template works as before now, thx again for your help. Cheers Adriaan.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Smarty tags not working anymore after update

This forum was archived on 2017-11-26.