CMS/Drupal-Theme

Drupal::Theme::Omega

onesixx 2013. 6. 12. 15:35
반응형

create a subtheme

modify the HTML structure by overriding the templates if needed

write the CSS files

arrange the layout to make the theme look as planned

blocks, views, writing content, ... )

 

 

========================================================

omega

http://softy.co.kr/60156706056

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

https://groups.drupal.org/node/155884

http://yup2white.tistory.com/40

http://tycomm.co.kr/

 

http://mechdeveloper.com/blog/how-theme-drupal-7-omega-3

http://www.youtube.com/watch?v=i2896gy1NjM

 

Creating the subtheme

using Drush and Omega tools

  1. drush omega-subtheme mysubtheme

set it as default

go to the options and turn off the debugging options (permanent).

Omega structure

.info file.

* regions

가장 작은 조각 , Grid의 열

the smallest pieces of Omega structure, being more specific,
they are the columns of the grids
,
they are supposed to hold the rest of the content (the blocks, Views, ...),
the number of columns for each one can be configured, as well as the prefix and suffix (empty columns to fill unused spaces).
The arrangement of the regions may change depending on the device (this can be configured in the options),
you may expect that each region has its own margins (other properties such as "width" are also set), therefore, changing these properties via CSS for any reason is highly discouraged.

* zones

the containers of each grid

there will be as many grids as many zones are, the grids have a number of allowed columns up to 24 columns,
each zone can have its own configuration,
so maybe one zone has 12 columns and another has 16 columns, unlike regions,
they take all the screen horizontally, and they can only be arranged vertically,
the zones can only hold regions and nothing more.

The sections

containers of the zones,
their width takes all the screen and their height depends on the content that they hold, unlike the zones and regions,
they can not be ordered (or even created) by the user,
there are just three of them, the header section, the content section and the footer section,
they must be considered as static content wrappers
.
For example, the header, content and footer sections should not be moved from their positions,
if they were changed, the content may lose meaning or sense.
There are no ways (at least in Omega) to create or arrange the sections,
however, you can create more section by hacking Omega.

 

<참조>

Omega Theme Documentation Handbook https://drupal.org/node/819164

반응형

'CMS > Drupal-Theme' 카테고리의 다른 글

Font Awesome icons image  (0) 2013.08.09
Drupal::Omega::resize me  (0) 2013.07.30
TB Sirate- Remove Social share menu  (0) 2013.07.30
How to build TB Sirate 3  (0) 2013.07.29
Building a new theme for Drupal 7  (0) 2013.06.14
Drupal::Theme::OMEGA-subtheme  (0) 2013.06.11