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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Group Description
Pages: [1]

Author Topic: Group Description  (Read 1247 times)

sergeich

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • USDLC
Group Description
February 19, 2010, 03:37:56 pm
We need to display Group Description on the front-end on Joomla based site. I tried tweaking Profile/Group settings to no avail.

my questions are:

1) Can I display a Group's Description within a Profile (public front-end, non-editable, visible to all)
2) Is there a URL for simply displaying a Group and its description?
 

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: Group Description
February 19, 2010, 07:40:22 pm

no to 1 and 2. however u can use hooks to expose the group description and then a customized template to display the group description for that profile

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

sergeich

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • USDLC
Re: Group Description
February 23, 2010, 05:20:40 pm
OK, I see. Could you tell me if the following scenario is doable at all with hooks and customized template? (before I hit the learning curve of hooks :)

We need a page(s) that displays:

a) Group Name
b) Group's Description
c) a table of individuals similar to this (profile-view): http://ebhv.alloraconsulting.com/index.php?option=com_civicrm&task=civicrm/profile&search=0&gid=10

I can't figure out how to achieve this with built-in functionality of CiviCRM :(


PS Also, is there an "HTML Form snippet" that display a View-only Profile instead of the one for entering data?

 

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: Group Description
February 23, 2010, 05:36:55 pm

yes, if you just want to add the group name and description to that page it is doable with hooks/customized templates

you will need to be familiar with php/mysql to do the above. if not a developer, consider hiring someone from http://civicrm.org/professional/

a view only profile is basically just html code. you can cut-n-paste and use whereveer u want :)

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

sergeich

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • USDLC
Re: Group Description
February 24, 2010, 11:37:53 am
Ok, thanks ! I'm more than familiar with php/mysql ;) Just wanted to make sure I'm going in the right direction with this before I pour much time into learning hooks at the expense of my client.

>a view only profile is basically just html code.

Well, static HTML won't do as it needs to be dynamic since the content of the database changes (eg a phone number changes for some person and view-only profile needs to pull this new info from the database).

My last question, if you would: can I enable HTML format for Group description?

Thanks a lot for your time, Donald!

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: Group Description
February 24, 2010, 01:24:38 pm
Quote from: sergeich on February 24, 2010, 11:37:53 am
My last question, if you would: can I enable HTML format for Group description?

no, u'll have to modify the code to enable this, the relevant file is:

CRM/Group/Form/Edit.php

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

sergeich

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • USDLC
Re: Group Description
March 12, 2010, 07:27:44 am
Lobo, it was pointed out to me that a simpler approach is to use Profile Pre-Post blurb instead of Group description. It already has HTML enabled which is exactly what I need.

The problem of course is that it's not displayed on the front-end Profile Search view.

I created a custom template structure, CRM/common/joomla.tpl but I couldn't figure out how to pull the Pre_post info into this template. It seems to be referenced as "$help_pre" in Edit / Create forms, right? Can you point me in the right direction?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Group Description

This forum was archived on 2017-11-26.