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) »
  • custom path suggestion ?
Pages: [1]

Author Topic: custom path suggestion ?  (Read 869 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
custom path suggestion ?
August 22, 2009, 07:24:58 am
Hi,

Some of the contacts will be displayed publicly, (eg parties and members).
I'd like to display them using profile, but
 and I'd like to be able to display a path that is / party_name / sort_name (and uri as well) instead of civicrm / profile /view

Any suggestion ? Otherwise, will probably have to write a custom module and use the api to fetch the data.

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

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: custom path suggestion ?
August 22, 2009, 07:30:56 am

this should work:

1. create a xml menu file (like http://svn.civicrm.org/sfschool/trunk/SFS/xml/Menu/sfschool.xml)

2. add that file via hook_civicrm_xmlMenu

3. depending on how static or dynamic your url is, the final function can be a simple wrapper around the profile stuff OR directly call the profile code

4. also check: CRM_Core_Invoke::profile( ) for ideas on how to directly call the profile code

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • custom path suggestion ?

This forum was archived on 2017-11-26.