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) »
  • Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'
Pages: [1]

Author Topic: Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'  (Read 1799 times)

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'
March 09, 2010, 06:52:21 pm
So what is this setting in civicrm.settings.php supposed to point to?

Should it be something in the modules folder such as "...mydrupalfolder/sites/all/modules/civicrm/...something"?

Or should it be some place like the drupal "files" folder such as "...mydrupalfolder/sites/mysite.com/files/civicrm/templates_c"

What is the default if this isn't explicitly changed?

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: Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'
March 09, 2010, 07:42:00 pm

if civicrm is installed in sites/all/modules: ...mydrupalfolder/sites/default/files/civicrm/templates_c

in multisite mode: mydrupalfolder/sites/SITENAME/files/civicrm/templates_c
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Re: Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'
March 10, 2010, 02:35:19 am
OK, so basically wherever the drupal files folder is for that site.  One more question.  I don't like the default place drupal puts the files folder as it creates really ugly file paths for user contributed files so I configure all my sites to use a different drupal files path.  I assuming there is no problem as long as I point CIVICRM_TEMPLATE_COMPILEDIR to that same location?

So in my case I would have it as...

mydrupalfolder/files/mysite/files/civicrm/templates_c

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'
March 10, 2010, 03:31:34 am
Quote from: pdowling on March 10, 2010, 02:35:19 am
I don't like the default place drupal puts the files folder as it creates really ugly file paths for user contributed files so I configure all my sites to use a different drupal files path.  I assuming there is no problem as long as I point CIVICRM_TEMPLATE_COMPILEDIR to that same location?

Yes – (at least in theory…) this is just a place that Smarty will use to cache its compiled templates, so actually any dir (e.g., also one not necessarily visible from the outside world) should work ok.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Dumb question about 'CIVICRM_TEMPLATE_COMPILEDIR'

This forum was archived on 2017-11-26.