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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Need Help! Javascript Error When Customizing Profile "view.tpl"
Pages: [1]

Author Topic: Need Help! Javascript Error When Customizing Profile "view.tpl"  (Read 742 times)

bscivolette

  • Guest
Need Help! Javascript Error When Customizing Profile "view.tpl"
October 08, 2010, 09:38:23 am
Today I followed the documentation tutorial on how to create custom profile views. I did this successfully, however, when I removed the "Back to listings" link and attempted to replace with an "Edit this profile link" I ran into a problem. I don't know javascript (or PHP) and I can only assume that the way I entered the URL for the profile edit was incorrect. Can someone tell me what it should look like? My version is below.

<div class="action-link">
    {if $listingURL}
            <a href="{civicrm/profile/edit?reset=1&gid=12}">&raquo; {ts}Edit Contact Information{/ts}</a>&nbsp;&nbsp;&nbsp;&nbsp;
        {/if}

The original was:
{if $listingURL}
            <a href="{$listingURL}">&raquo; {ts}Back to Listings{/ts}</a>&nbsp;&nbsp;&nbsp;&nbsp;
        {/if}

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Need Help! Javascript Error When Customizing Profile "view.tpl"
October 08, 2010, 02:52:44 pm
Try removing the squiggly brackets from civicrm/profile/edit?reset=1&gid=12

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Need Help! Javascript Error When Customizing Profile "view.tpl"

This forum was archived on 2017-11-26.