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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Link to the list of PCPs for Contribution Page
Pages: [1]

Author Topic: Link to the list of PCPs for Contribution Page  (Read 634 times)

peter

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Joomla
  • MySQL version: 5
  • PHP version: 5
Link to the list of PCPs for Contribution Page
May 26, 2011, 06:23:41 am
Hi,

I'm using CiviCRM 4.1 on Joomla 1.6 and I need to create a menu item to link to the page with a list of PCPs created for specific Contribution page. I tried to use one of the existing options but it looks like they're broken so I'm trying to do it on my own now. I tried civicrm/contribute/pcp but it only gives me a page with search form (which looks broken too).

Can someone please give me an example of such as link or give me some tips how can I create this kind of menu item?

Thanks!

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Link to the list of PCPs for Contribution Page
May 26, 2011, 05:13:14 pm
Yes right now it is broken but as a temporary measure what you can you please try putting

jimport('joomla.html.parameter.formfield');

right after the or die; lines of

administrator/components/com_civirm/civicrm/joomla/site/elements/civicontribpagespcp.php
administrator/components/com_civirm/civicrm/joomla/site/elements/civipcps.php


This is (I think) giving notices on the front end that I'm still looking into but you can at least make the page and if you keep the error reporting off it will work.

I'll post back when I understand about the notices.




peter

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Joomla
  • MySQL version: 5
  • PHP version: 5
Re: Link to the list of PCPs for Contribution Page
May 27, 2011, 01:38:09 am
Thanks mcsmom. I've already fixed the bug in civicontribpagespcp.php by changing the last line to:

return JHTML::_( 'select.genericlist', $options, $name, null, 'value', 'text', $value, $name );

but this kind of menu links to the "Setup a Personal Campaign Page".

The second type of menu works fine - I just needed to approve at least one of the PCPs. However, it links only to the single PCP. What I need is a link to the list of all PCPs for selected Contribution Page. Is this kind of option available in CiviCRM or do I need to add it on my own?

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Link to the list of PCPs for Contribution Page
May 27, 2011, 08:42:01 am
You don't have debugging on do you :P.

That would definitely be an extremely useful view to have. It's probably quicker to make a module, but whatever you come up with I hope you'll share it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Link to the list of PCPs for Contribution Page

This forum was archived on 2017-11-26.