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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Extensions webPath is relative to what base URL?
Pages: [1]

Author Topic: Extensions webPath is relative to what base URL?  (Read 1172 times)

Erik Stainsby

  • I’m new here
  • *
  • Posts: 28
  • Karma: 1
  • Web+Db Programmer
  • CiviCRM version: 4.4.3 WP plugin
  • CMS version: WP 3.7.1
  • MySQL version: 5.5.34
  • PHP version: 5.3.10-1ubuntu3.8
Extensions webPath is relative to what base URL?
December 20, 2012, 12:10:52 pm
I am new to CiviCRM and need a few basic pointers to orient myself and get that crucial first edit-to-view feedback loop started.

Using civix I have generated a page stub, and following the example in the --help screen specified 'civicrm/processor' as the webPath.  My assumption is that this is a RESTful path extension which will cause Civi to render out the page.  I have not however been able to locate a statement of which URL it ought to be used relative to.

I am using CiviCRM 4.2 and WP 3.4.2. 
My base site URL is http://roaringsky.ca
My extension's directory is: file://<docroot>/wp-content/plugins/files/civicrm/extensions/ca.roaringsky.netbanx

Any guidance appreciated.

- Erik Stainsby

Erik Stainsby

  • I’m new here
  • *
  • Posts: 28
  • Karma: 1
  • Web+Db Programmer
  • CiviCRM version: 4.4.3 WP plugin
  • CMS version: WP 3.7.1
  • MySQL version: 5.5.34
  • PHP version: 5.3.10-1ubuntu3.8
Re: Extensions webPath is relative to what base URL?
December 20, 2012, 12:31:40 pm
I believe I may have stumbled onto the answer:  the [CiviCRM_URL] aka the WP Dashboard > CIviCRM environment:

http://roaringsky.ca/wp-admin/admin.php?page=CiviCRM&q=civicrm/processor

A short confirmation from anyone in the know would still be appreciated.
 - Erik

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Extensions webPath is relative to what base URL?
December 20, 2012, 12:32:53 pm
Quote from: erik on December 20, 2012, 12:31:40 pm
A short confirmation from anyone in the know would still be appreciated.

I qualify as such. :)

AFAIK, the path civicrm/processor will be a web page, not a REST API. The path would be of the same format as other CiviCRM pages, so for example on this site:

http://wordpress.demo.civicrm.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/search&reset=1

your path would be:

http://wordpress.demo.civicrm.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/processor

At least on the backend.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Erik Stainsby

  • I’m new here
  • *
  • Posts: 28
  • Karma: 1
  • Web+Db Programmer
  • CiviCRM version: 4.4.3 WP plugin
  • CMS version: WP 3.7.1
  • MySQL version: 5.5.34
  • PHP version: 5.3.10-1ubuntu3.8
Re: Extensions webPath is relative to what base URL?
December 20, 2012, 12:42:06 pm
Thanks Hershel.
Can you illustrate the form for a front-side page specification ?   Mapping a frontside WP URL to a CivicCRM backend processor I mean.


~ Erik
« Last Edit: December 20, 2012, 12:43:45 pm by Erik Stainsby »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Extensions webPath is relative to what base URL?
December 20, 2012, 12:48:44 pm
Based on

http://wordpress.demo.civicrm.org/?page=CiviCRM&q=civicrm/event/register&reset=1&id=3

it would be:

http://wordpress.demo.civicrm.org/?page=CiviCRM&q=civicrm/processor
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Extensions webPath is relative to what base URL?

This forum was archived on 2017-11-26.