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) »
  • How do I access employer name in the CiviCase Dashboard?
Pages: [1]

Author Topic: How do I access employer name in the CiviCase Dashboard?  (Read 628 times)

jschleining

  • Guest
How do I access employer name in the CiviCase Dashboard?
October 28, 2010, 12:02:36 pm
Hi all!

I am trying to modify the UI for the CiviCase Dashboard, and admittedly, Im not entirely certain yet on how all of the tokens work.

Specifically, I am working on hiding the Case ID, replacing it with the Client Name, and where the client Name currently is, replacing that with the Client's employer.

I found the particular section I need to change in the DashboardSelector.tpl, and figured out how to accomplish 2 out of hte 3 things listed above, but I cant seem to access the client's employer. As I understand it, {$row.sort_name} is referring to the contact table in the database, specifically calling the contact id called in the href function. (could be way off base on that though). my initial thought, after looking at that table, was that I could then access {$row.organization_name}, since it has already defined which row it is looking for previously. The below code is my modified version of the code in DashboardSelector.tpl as it currently stands. I know Im obviously doing something wrong, but I dont yet know what. Ive split the code up into multiple lines here for readability.

<td class="crm-case-phone">
   <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">
      <!--{$row.sort_name}-->{$row.organization_name}
   </a>

   {if $row.phone}<br /><span class="description">{$row.phone}</span>{/if}<br />

   <span class="description">
      <!--{ts}Case ID{/ts}: {$row.case_id}-->{$row.sort_name}
   </span>
</td>

Thank you for your time.

-J-



jschleining

  • Guest
Re: How do I access employer name in the CiviCase Dashboard?
October 28, 2010, 12:21:38 pm
meh, sorry, just realized i probably put this in the wrong place. still need help with it, but if it needs to be moved, so be it :)

-J-

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: How do I access employer name in the CiviCase Dashboard?
October 28, 2010, 04:39:00 pm

1. check:

http://en.flossmanuals.net/CiviCRM/DevelopIntro

2. Use SmartyDebug and see what values are sent in via row. I suspect org name is not sent in

3. Use a hook:

http://wiki.civicrm.org/confluence/display/CRMDOC32/CiviCRM+hook+specification

(maybe hook_civicrm_pageRun) to add organization name for all the rows

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

jschleining

  • Guest
Re: How do I access employer name in the CiviCase Dashboard?
October 29, 2010, 09:27:47 am
Thank you much :)

I think I glossed over the extending CiviCRM part the day I was reading it (long day, should have taken more time). Oh well, I'll go back and read it again and look into the rest as well.

Thank you for your time.

-J-

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do I access employer name in the CiviCase Dashboard?

This forum was archived on 2017-11-26.