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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • new hook pageBrowse???
Pages: [1]

Author Topic: new hook pageBrowse???  (Read 300 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
new hook pageBrowse???
June 10, 2014, 02:56:31 am
Hi all,

I need to add a column to the Tag page. I can do this using a pageRun hook, but that really only tells me the name of the page, and I can not influence the rows for CRM/Admin/Page/Tag.tpl. They are set in the browse function of CRM/Admin/Page/Tag.php. Following that flow, I thought it would make sense to have a hook pageBrowse (& $rows ) that allows you manipulate the rows? Or is the recommended practice to replace the rows using the alterTemplateFiel hook? I'd be happy to add the pageBrowse hook.

Any thoughts?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: new hook pageBrowse???
June 10, 2014, 03:11:25 am
The latter about the alterTemplate does not make sense, not enough coffee  ;D

I am going to solve this now adding an array with data in the pageRun hook and retrieving it in the template. I still believe that having a pageBrowse hook in which I can influence the rows and column headers would be nice.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • new hook pageBrowse???

This forum was archived on 2017-11-26.