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) »
  • Is there a way to apply different tags to different groups?
Pages: [1]

Author Topic: Is there a way to apply different tags to different groups?  (Read 1141 times)

Durruti

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
    • The Kindling Trust
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Is there a way to apply different tags to different groups?
November 24, 2008, 04:02:15 pm
Hello there folks!
Not sure if anyone can help with this. I have have a CiviCRM site that is all about the search page (that has been made the site frontpage), I have two distinct groups that are listed on the site (that I have created using CiviCRM groups), the tags I have created relate only to the first group. My problem is that some of the tags from the first group could be conceivably be applied to the second but are not in our database, this means that users looking for organisations in the second group, but including tags from the first group will find nothing. If I were to do it again, I would do it with drupal taxonomy but am unsure how to best proceed with what I have.
Is there a way to show different tags, depending on what group is selected? The other option I was thinking about was creating a custom template which contained a search box for the first box with the tags and then a search box for the second beneath it, with no tags box printed to screen. I'm not totally sure how to go about this, such as how to select a catagory by default and hide the drop-down list. Or am I totally missing the point and can use taxonomy on the search page.
Anyway as you can see I'm in a bit of a pickle and would really appreciate any advice on this one.

I am dealing with a site using Drupal 5.12 and CiviCRM 2.0 as I can't currently upgrade.

Many thanks, any input gratefully received,
Durruti
http://feedingmanchester.org.uk

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: Is there a way to apply different tags to different groups?
November 24, 2008, 05:06:52 pm
your best bet would be to do a custom search and use javascript to show the tags if group 1 is selected and hide the tags if not

alternatively if you are really good at javascript, you might be able to achieve the same effect on the civicrm search forms. jQuery might be your friend out here :) If you figure this out, please share your solution

you cannot use taxonomy of search pages. Also you can see the javascript on some other civicrm pages and potentially mimic that to achieve the show/hide effect of tags based on the selected group

lobo
 

« Last Edit: November 24, 2008, 05:08:33 pm by Donald 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

Durruti

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
    • The Kindling Trust
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Re: Is there a way to apply different tags to different groups?
November 25, 2008, 04:23:12 am
Thanks Lobo,
I'll have a look into that, I've not written any of my own javascript before, so if anyone knows of a site that uses such techniques (that I can crib some stuff from as a baseline) that would be great. I'll definitely post what I find up here.
Many thanks,

Durruti
http://feedingmanchester.org.uk

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Is there a way to apply different tags to different groups?

This forum was archived on 2017-11-26.