ラベル

Server (108) work (77) Idea (68) Car (31) PC (29) DAW (28) other (19) MakingWEBsite (18) 趣味 (18) health (13) CentOS (11) drupal (11) (9) android (4) スマホ (4) communication (3) drupal7 (3) hint (3) meno (3) モバイル (3) 歯医者 (3) 第二種電気工事士 (3) 英語 (3) PC Server (2) drupal8 (2) ms access (2) uwp C# (2) めし (2) 整備 (2) 音楽 (2) MIDI (1) diy (1) 会計 (1) 動画再生 (1) 生活 (1) 郵便 (1) 食べ物 (1)

2014年1月28日火曜日

Drupal テーマ omega4

テーマomega(omega-7.x-4.2.zip)をダウンロードして解凍すると、
omegaフォルダのなかに、

omegaフォルダと、ohmフォルダができる。

このomegaフォルダがベーステーマ(base theme)で、
ohmフォルダがサブテーマ(sub-theme)の一例。

以下、omegaの解説ページよりOmega4用推薦モジュール。
Panelsモジュールなどを使えと書いてある。
Panelsモジュールを使いたくないならcontextモジュールを使えと書いてある。

https://drupal.org/node/1936976

The following modules are recommended

PanelsPanels Everywhere and Panelizer
For configuring your display and also activating alternative layouts for sub-sections of your website; Panelizer provides additional functionality (per-object display changes, multiple selectable displays, etc) for entities.
Note: The layout concept in Omega basically serves as a theme-driven and lightweight replacement for Panels Everywhere. You can also disable the layout extension in Omega and use Panels Everywhere.
Display Suite
Also for configuring your display. This also works in conjunction with Panels.
Fences
Can be used to produce cleaner markup for Entity Fields.

If you don't like Panels for whatever reason you can also use the Context module

Context
For placing blocks and configuring alternative layouts for sub-sections of your website.
Context omega
This module allows you to set the omega 4.x layout to use, using the context module.

Panelsモジュールなどはオーバーライドする部分が多くて、それを使うと後から修正がやりずらいそうだ。
だから、contextを使った方が、後からの修正がきくそうだ。



モジュール(後から気がつきたのだが、Omega 4.x should NOT be used with Omega Tools and Deltaとある。)

The following modules were written for Omega 3.x, and are now deprecated in Omega 4.x (and potentially incompatible)

Omega Tools
There is no need to download Omega Tools — the functionality has been moved into Omega 4.x itself.
Delta
With the new concept of layouts, the Delta module is more or less deprecated. It still works for setting up alternative instances of your theme settings but since the main idea behind the Delta module was to provide alternative layout configuration (which is not needed anymore) it can be omitted.
Note: There might still be some very special use cases in which the Delta module MIGHT be an option.
Omega Tools(これはomega3用だった。omega4には使えない。)
http://drupal.org/project/omega_tools
Omegaテーマのサブテーマを作るモジュール
ThemeKey
http://drupal.org/project/themekey
特定の条件でテーマを変更するモジュール



http://radarearth.com/content/beginning-drupal-7-theming-omega

https://drupal.org/node/1440250

https://drupal.org/node/819164

0 件のコメント:

コメントを投稿