dev/core/1259 update config checklist contribution section
authorEli Lisseck <lisseck@gmail.com>
Tue, 17 Sep 2019 17:35:59 +0000 (10:35 -0700)
committerEli Lisseck <lisseck@gmail.com>
Tue, 17 Sep 2019 17:35:59 +0000 (10:35 -0700)
CRM/Admin/Page/ConfigTaskList.php
templates/CRM/Admin/Page/ConfigTaskList.tpl

index 7d43f650e4852ccbab3b708a3e24e6897c7fafe0..ccb987294b94d7f9c55495e50b4ed1fa0f686bf8 100644 (file)
@@ -57,6 +57,17 @@ class CRM_Admin_Page_ConfigTaskList extends CRM_Core_Page {
 
     $this->assign('registerSite', htmlspecialchars('https://civicrm.org/register-your-site?src=iam&sid=' . CRM_Utils_System::getSiteID()));
 
+    //Provide ability to optionally display some component checklist items when components are on
+    $result = civicrm_api3('Setting', 'get', [
+      'sequential' => 1,
+      'return' => ["enable_components"],
+    ]);
+    $enabled = array();
+    foreach ($result['values'][0]['enable_components'] as $component) {
+      $enabled[$component] = 1;
+    }
+    $this->assign('enabledComponents', $enabled);
+
     return parent::run();
   }
 
index e68bb610eb821b38b24a8988db745bf5434606cb..1c6f5f9cfbe7e1d8fc4fe57c798fdaea5928d062 100644 (file)
             {else}
                 <td class="tasklist"><a href="{$config->userFrameworkBaseURL}?q=admin/user/permissions&civicrmDestination=civicrm/admin/configtask">{ts}Permissions for Anonymous Users{/ts}</a></td>
             {/if}
-            <td>{ts}You will also need to change Drupal permissions so anonymous users can make contributions, register for events and / or use profiles to enter contact information.{/ts} {docURL page="Default Permissions and Roles" resource="wiki"}</td>
+            <td>{ts}You will also need to change Drupal permissions so anonymous users can make contributions, register for events and / or use profiles to enter contact information.{/ts} {docURL page="user/en/latest/initial-set-up/permissions-and-access-control" text="(learn more...)"}</td>
         </tr>
     {/if}
-    <tr class="even">
-        <td class="tasklist nowrap"><a href="{crmURL p="civicrm/admin/messageTemplates" q="selectedChild=workflow&reset=1&civicrmDestination=`$destination`"}" title="{$linkTitle|escape}">{ts}System Workflow Templates{/ts}</a></td>
-        <td>{ts}Review and modify the templates used for system-generated emails, including contribution receipts and event registration confirmations.{/ts}</td>
-    </tr>
+    {if $enabledComponents.CiviContribute eq 1}
+      <tr class="even">
+          <td class="tasklist nowrap"><a href="{crmURL p="civicrm/admin/setting/preferences/contribute" q="selectedChild=workflow&reset=1&civicrmDestination=`$destination`"}" title="{$linkTitle|escape}">{ts}CiviContribute Component Settings{/ts}</a></td>
+          <td>{ts}Review and modify the CiviContribute Component settings such as Taxes and Invoicing, Deferred Revenue, and Access Control by Financial Type{/ts}</td>
+      </tr>
+    {/if}
 </table>
 <br />