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) »
  • Suppress Status Messages on a Custom Profile Template
Pages: [1]

Author Topic: Suppress Status Messages on a Custom Profile Template  (Read 2707 times)

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
Suppress Status Messages on a Custom Profile Template
July 18, 2008, 05:25:24 pm
Hi how do I suppress the status messages on a custom template?

This one?
<div class="messages status">

The display on my template is inappropriate for the search result, and I just want it hidden.

Thanks!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Suppress Status Messages on a Custom Profile Template
July 19, 2008, 04:42:38 pm
If this is a Profile "search" - check templates/CRM/Profile/Page/Listings.tpl (there's one conditional status display at the bottom of that file - but not sure if that's the one). Otherwise you'll need to post the message you're trying to suppress :-)
Protect your investment in CiviCRM by  becoming a Member!

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: Suppress Status Messages on a Custom Profile Template
July 23, 2008, 11:22:39 am
Thanks for the reply.  I checked out that custom template file but couldn't spot a way to turn off the yellow warning box at the top "includes fields for more than one record type".

I don't want the warning displayed because the whole point of this profile is to display two kinds of contact data.  :-)

http://rivernetwork.org/rn/civicrm/profile?reset=1&gid=2&force=1
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Suppress Status Messages on a Custom Profile Template
July 23, 2008, 03:27:58 pm
Although your profile search / listings "works" - it's not a currently supported case to mix Individual and Organization fields in a profile. Your options are:

1. I think you can replace First Name, Last Name, Organization Name search fields with "sort name" (and change the label to just "Name"). This works fine in 2.1 dev  and I think will work in 2.0

OR

2. Hack out the code which throws that warning message. You can find it in CRM/Profile/Form.php
Protect your investment in CiviCRM by  becoming a Member!

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: Suppress Status Messages on a Custom Profile Template
July 28, 2008, 05:51:07 pm
Just following up FYI.

Option #1 you listed is not possible, because in my version 2.0.5 there is no "Sort Name" field available in the menu for Individuals nor Organizations.

Option #2 was rather easy, I simply switched the comments on line 246 and 247 of /CRM/Profile/Form.php

Thanks.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Suppress Status Messages on a Custom Profile Template

This forum was archived on 2017-11-26.