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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to make a complex page with several contacts ?
Pages: [1]

Author Topic: How to make a complex page with several contacts ?  (Read 1363 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
How to make a complex page with several contacts ?
June 18, 2009, 12:53:21 am
Hi,

For a public part of the website, I'd like to compose complex page, for instance with an organisation and contact details and the list of all the members (individual contacts related to the organisation).

A bit too complex for profiles. Is there a better way than going the phpcoding api way ? How, ideally, this solution handles cache, to give a bit of break to mysql.

X+

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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How to make a complex page with several contacts ?
June 18, 2009, 01:00:22 am
drupal or standalone?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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 to make a complex page with several contacts ?
June 18, 2009, 06:35:35 am

i suspect not :(

You will need to use your php/sql skills. You'll also need to handle caching on your own

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

abrookins

  • I’m new here
  • *
  • Posts: 21
  • Karma: 5
    • Redspire (Blog)
Re: How to make a complex page with several contacts ?
June 18, 2009, 07:54:10 am
If it's a Drupal install, you could look into Panels (http://drupal.org/project/panels). 

With panels you can link multiple areas of a single displayed page to SQL queries defined in Views; using the latest Views integration code you could probably achieve some mojo.  You'd likely have to work out how to pass arguments between the Views queries attached to the panels -- one thread on this here (http://groups.drupal.org/node/9770) -- so you could pull related records within the corresponding views.

I haven't had a chance to try this, though. 

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: How to make a complex page with several contacts ?
June 18, 2009, 10:42:15 am
If you go the Views route, which seems promising to me, you may be able to set up a relationship between org and related individuals. There are various drupal modules that work on parent / child displays (http://drupal.org/search/apachesolr_search/view%20parent%20child?filters=type%3Aproject_project). HTH
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How to make a complex page with several contacts ?
June 18, 2009, 02:18:55 pm
Key question X+ - drupal or standalone?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to make a complex page with several contacts ?
June 18, 2009, 09:55:34 pm
Drupal.

Panels seems to be interesting, but seems that they have abandoned the first and second version and the 3rd one is alpha. Not sure I'd go through the beta pain to have it abandoned again ;)

I'll have a more detailed look at the view.

On most of the CMS, they are functions to fetch content from within the template. What do you think of adding an extra smarty function to call the api and assign the result, or apply a template directly to it ?

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to make a complex page with several contacts ?

This forum was archived on 2017-11-26.