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) »
  • crmURL URL formatting from the api
Pages: [1]

Author Topic: crmURL URL formatting from the api  (Read 563 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
crmURL URL formatting from the api
December 30, 2012, 06:37:17 am
Hi,

I'm interfacing with civi using the REST api, and want to be able to generate a link to a specific url (edit contact id 42)

In a "normal nice url drupal" that'd be /civicrm/contact/edit?cid=42&reset=1 but if you put in WP/J!/subfolder/not nice urls... got quite a few options.

For the js within civi, we generate a template and the code on the client side uses it to create the proper url. I'd want to do the same for the api.

Does it exist already? Should I add it to api.setting?


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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • crmURL URL formatting from the api

This forum was archived on 2017-11-26.