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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Configure custom templates directory in civicrm.settings.php ?
Pages: [1]

Author Topic: Configure custom templates directory in civicrm.settings.php ?  (Read 1062 times)

drupleg

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 2
    • Drupal.org Profile
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • PHP version: 5.3
Configure custom templates directory in civicrm.settings.php ?
December 02, 2010, 08:05:16 pm
Hi, I'd like to know if I can configure the custom templates directory via the civicrm.settings.php file? I'm not finding any documentation that explicitly says yes this is an option.   I develop locally and push to a live server, with different paths for custom templates, url, temporary files, etc. Then I sync back down to the local server for upgrades, testing, etc.  I've just been resetting these vi civicrm/admin/setting/path?reset=1 when I need to, which works fine of course.  It would be nice to just hard code it in the settings file if possible to save an extra step.  Thanks!

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: Configure custom templates directory in civicrm.settings.php ?
December 02, 2010, 11:24:33 pm
I seem to remember there is instruction on this page : http://wiki.civicrm.org/confluence/display/CRMDOC32/Installing+CiviCRM+from+subversion+%28SVN%29+repository
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Configure custom templates directory in civicrm.settings.php ?
December 03, 2010, 01:56:02 am

so, presumably

define( 'CIVICRM_TEMPLATE_COMPILE_DIR', '/home/lobo/public_html/drupal/sites/reallyinterestingtemplates/' );

But if you do a db copy from live I expect this won't override the contents of civicrm_domain
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Configure custom templates directory in civicrm.settings.php ?
December 03, 2010, 02:51:49 am
I would guess the same Eileen, you would probably also need to change civicrm_domain if you do a migrate. Would it not be easier to have your own config script for your test and live environments? That is what I do, holding additional folders, defining constants and other stuff I need?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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: Configure custom templates directory in civicrm.settings.php ?
December 03, 2010, 09:28:04 am

This is currently not an option

If u r interested in patching civicrm to make this an option, please ping us on irc and we can help u get started

We might want to think about changing these config setting via a drush interface, so folks can easily script a move

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) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Configure custom templates directory in civicrm.settings.php ?

This forum was archived on 2017-11-26.