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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Make location of localised PHP and Templates more flexible
Pages: [1]

Author Topic: Make location of localised PHP and Templates more flexible  (Read 1809 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Make location of localised PHP and Templates more flexible
August 01, 2012, 07:25:08 pm
Hi,

It appears the location of the custom PHP and Template code needs to be situated under a directory derived from the CIVICRM_TEMPLATE_COMPILEDIR.

For me, that's currently under sites/default/files/civicrm in my Drupal install. As the PHP and templates are code, I'd prefer to store it under sites/all/modules as a module, to simplify configuration control.

When I try and set the custom PHP or templates directory outside the sites/default/files/civicrm tree I don't get an error, but the change doesn't stick. I assume this is because the directory stored is a path relative to the root (eg, sites/default/files/civicrm/local/php is stored as local/php in my case).

Ken

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: Make location of localised PHP and Templates more flexible
August 02, 2012, 12:41:23 am
Ken,
I do not have that problem in any of my installs? I usually keep my custom PHP and template dirs in /sites/all/modules, so outside of the civicrm tree. This makes upgrading a little easier...I have been in the situation where I have deleted my customizations during an upgrade :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Make location of localised PHP and Templates more flexible
August 09, 2012, 01:51:39 am
It's a bug with multisite. I'll create a separate post with the details.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Make location of localised PHP and Templates more flexible

This forum was archived on 2017-11-26.