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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • WP multi-site contrib widgets
Pages: [1]

Author Topic: WP multi-site contrib widgets  (Read 456 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
WP multi-site contrib widgets
September 25, 2013, 10:27:12 am
In this documentation:
http://wiki.civicrm.org/confluence/display/CRMDOC/Multi+Site+Installation

it's suggested using home_url() as the base url in the settings file.
we ran into an issue because using that function assumes WP has been instantiated. but there are a number of places where civi pulls resources outside of WP. for example, a contribution page widget, which needs to be standalone.

I fixed by wrapping in a function_exists() condition, and reverting to a fixed URL if it does not. just curious if others have found a better solution or if there are any gotchas with the above.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • WP multi-site contrib widgets

This forum was archived on 2017-11-26.