官术网_书友最值得收藏!

  • CiviCRM Cookbook
  • Tony Horrocks
  • 288字
  • 2021-08-20 16:56:55

Setting up a CiviCRM theme in Drupal

CiviCRM administration screens take up a lot of browser real estate. How CiviCRM looks is determined by what themes you are using in your CMS. Problems arise when you use your main website theme to display CiviCRM pages. All the customizations, blocks of information, and layouts suddenly get in the way when you want to administer CiviCRM. The trick is to use a different theme for CiviCRM.

How to do it…

This is very easy to accomplish, and just uses a configuration screen in Drupal.

  1. Make sure you have the CiviCRM theme module enabled.
  2. Navigate to admin/appearance in Drupal by clicking on the Appearance button. This page shows the themes that are currently installed within our CMS—in this case, Drupal.
  3. Make sure that any themes you wish to use are enabled.
  4. At the foot of the screen, configure CiviCRM Administration theme.

How it works…

Drupal uses the page URL to check if you are administering CiviCRM. If you are, the pages are displayed using the CiviCRM administration theme.

It's a good idea to select a flexible-width theme with sidebars. Garland is a good example. The flexible width accommodates CiviCRM displays nicely.

Once the administration theme is selected, navigate to admin/structure/blocks. Here you will see various blocks provided by the CiviCRM module. You can now place these blocks within your administrative theme.

Pay special attention to the visibility settings for these blocks, so that they only appear when using CiviCRM.

There's more…

In Drupal, there is an additional setting that controls which theme is used to display public CiviCRM pages, for example, event sign-up pages.

See also

主站蜘蛛池模板: 崇州市| 墨脱县| 布尔津县| 天等县| 米泉市| 宁城县| 利辛县| 邵阳县| 湟源县| 香港| 安吉县| 沾化县| 南岸区| 潞西市| 威信县| 萨嘎县| 澄迈县| 和平县| 原阳县| 佛教| 比如县| 瓮安县| 清镇市| 西华县| 方山县| 威远县| 井冈山市| 高淳县| 云林县| 临夏县| 衡东县| 望谟县| 石狮市| 佛教| 张掖市| 公主岭市| 察雅县| 营口市| 增城市| 星座| 和顺县|