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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Using Smarty replace function in custom templates
Pages: [1]

Author Topic: Using Smarty replace function in custom templates  (Read 1579 times)

Bann

  • Guest
Using Smarty replace function in custom templates
April 15, 2010, 03:30:49 pm
Hi,

i try to getting smarty-string-functions work in my custom templates.

e.g. an part of my custom EventInfo.tpl:

   {if $event.summary}
       <div class="section event_summary-section">{$event.summary}</div>
   {/if}

Now i try to replace any kind of spaces for example. Smarty-Documentation says

   {if $event.summary}
       <div class="section event_summary-section">{$event.summary|replace:' ':''}</div>
   {/if}

But this doesn't work.

Any Idea why?

Thx Bann (using actual drupal 6.xx with civicrm 3.1.xx)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Using Smarty replace function in custom templates

This forum was archived on 2017-11-26.