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) »
  • Tags : hierarchical display in new contact and custom profiles ?
Pages: [1]

Author Topic: Tags : hierarchical display in new contact and custom profiles ?  (Read 770 times)

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Tags : hierarchical display in new contact and custom profiles ?
March 17, 2011, 06:41:13 am
When viewing a contact's tags tab, the tags that have a parent tag are displayed hierarchically as a tree with a nice javascript expand/collapse function.

Is there any way to get the same hierarchical tree in the new contact form and in custom profile forms ?
(Even without the collapse function, but at least sorted and indented according to the hierarchical structure)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Tags : hierarchical display in new contact and custom profiles ?
March 17, 2011, 09:16:30 am
Hi,

Yeap, you will need to implement in the profile/contact the code I wrote on the tab.

Check
CRM/Tag/Form/Tag.php
and templates/CRM/Tag/Form/Tag.tpl

(the bits about tree is what you want to understand and port)

        $tree = $tags->getTree( $this->_entityTable, true );
        $this->assign( 'tree'  , $tree );


Good luck

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: Tags : hierarchical display in new contact and custom profiles ?
March 17, 2011, 09:32:41 am
Thanks, I'll try to make sense of that and not break everything ...

Is there a single place this needs be added ?

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: Tags : hierarchical display in new contact and custom profiles ?
March 24, 2011, 05:55:26 am
I looked at it, but can't make sense of it, not being a php coder  :'(
(especially with the newer '->' style OO stuff.)

If someone more knowledgeable ever posts a patch, let me know!   ;D

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Tags : hierarchical display in new contact and custom profiles ?
March 24, 2011, 08:54:56 am
Hi,

Would you have some budget to cover part of the development ? We can launch a make it happen campaign see if other folks are interested enough to fund it.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: Tags : hierarchical display in new contact and custom profiles ?
March 24, 2011, 08:59:39 am
Nope, unfortunately. (otherwise, we'd hire someone to do it and then upload the patch ;) )

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Tags : hierarchical display in new contact and custom profiles ?

This forum was archived on 2017-11-26.