Answers.Body: <p>Take a look at issue <a href="https://issues.civicrm.org/jira/browse/CRM-19371" rel="nofollow">CRM-19371</a>. It a small bug and fixed in CiviCrm 4.7.13. I fixed my 4.7.12 installation by using <a href="https://github.com/civicrm/civicrm-core/pull/9047/files" rel="nofollow">this patch</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-24T21:30:24.600Z
Answers.LastActivityDate: 2016-10-24T21:30:24.600Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>I am using Drupal 7 with CiviCRM 4.7.12.</p>
  
  <p>When setting the Directories for CiviCRM...</p>
  
  <p>I know you can use [civicrm.files] and [civicrm.root] to get file system paths. However, I have my extensions, custom templates and custom php in the root of my web server. </p>
  
  <p>Is there a token or variable that I can set that will point CiviCRM to the root directory of my site?</p>
  
  <p>For example I could have the following for the "Custom Template Directory":
  [site.root]/CustomTemplates</p>
  
  <p>Note: There is a Paths.php file that defines a Paths class that contains cms.root. However, when using that in the directories settings it tells me that the path cannot be found.</p>
  
Tags: <tokens><configuration><settings><directory>
Title: Using a Variable/Token for Config Directories to Get Site Root Path
ThreadText: # Using a Variable/Token for Config Directories to Get Site Root Path
  
  (Asked by: username_0 on 2016-10-05)
  
  I am using Drupal 7 with CiviCRM 4.7.12.
  
  When setting the Directories for CiviCRM...
  
  I know you can use [civicrm.files] and [civicrm.root] to get file system paths. However, I have my extensions, custom templates and custom php in the root of my web server.
  
  Is there a token or variable that I can set that will point CiviCRM to the root directory of my site?
  
  For example I could have the following for the "Custom Template Directory":
  [site.root]/CustomTemplates
  
  Note: There is a Paths.php file that defines a Paths class that contains cms.root. However, when using that in the directories settings it tells me that the path cannot be found.
  
  **Tags:** tokens, configuration, settings, directory
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-24. Score: 2 | Accepted answer
  
  Take a look at issue [CRM-19371](https://issues.civicrm.org/jira/browse/CRM-19371). It a small bug and fixed in CiviCrm 4.7.13. I fixed my 4.7.12 installation by using [this patch](https://github.com/civicrm/civicrm-core/pull/9047/files).
  
  
  ---
  
  