Giter Site home page Giter Site logo

omega_override's Introduction

Author: David Coffey
Sponsored by Phase2 Technology
http://www.phase2technology.com

https://github.com/phase2/omega_override

An issue many people have had with Omega and Delta layouts is the inability
to stack regions within a zone. Word on the street is a better solution for
this is coming in Omega 4, but currently this is an issue for many Omega
users, and has been an issue for us here at Phase2 on a few projects now.

To get around this in the past, we have used preprocess hooks to force
regions into zones. (Technique described here: http://drupal.org/node/1230110)
This approach was less than ideal for a number of reasons. It broke off from
what the user saw in the zone configuration UI, it was difficult to maintain
or make changes to, and it didn’t allow us to take advantage of Delta templates.

The main issue is that Omega will not allow you to add regions to a zone if
the sum of the number of columns in all the regions in that zone exceed the
maximum number of columns allowed in that zone. This is a quick and dirty
little module to disable the form validation that checks for this.

Use this at your own risk! Omega validates this for a reason, and if you start
cramming more regions into a zone than will fit, you might start to see some
funky or unexpected layouts. But if you understand how CSS floats work, you can
use this to your advantage.

If I get time in the future, I’d like to add the ability for this to also
disable the auto-expansion of region widths when the surrounding regions are
empty. This would complete power to the themer to control region placement.
Also it would be nice to add these as checkboxes in the settings form so this
can be easily enabled/disabled for Delta templates.

omega_override's People

Stargazers

Si Nguyen avatar

Watchers

Jake Strawn avatar Bill Renk avatar Mike Crittenden avatar David Valdez avatar Lakshminp avatar Chauncey Thorn avatar Jonathan Hedstrom avatar Joshua S. Freeman avatar Quinn Supplee avatar Steven Merrill avatar Nate Parsons avatar Tom Stec avatar Sarah P avatar Daniel Sasser avatar Chris Johnson avatar Brian Kildow avatar Randall Knutson avatar Brandon Morrison avatar Tobby Hagler avatar Tirdad C. avatar Joe Turgeon avatar Jonathan Ledergerber avatar Dan Shumaker avatar Kristin avatar  avatar Joey Groh avatar Brandon Lee avatar  avatar Ellie Strejlau avatar Geoff Maxey avatar Jeff Crisamore avatar John Robert Wilson avatar Fredric Mitchell avatar Will O'Beirne avatar  avatar agregwilson avatar Cristian Mamani avatar David Coffey avatar James Cloos avatar Mai Irie avatar Michael Nielson avatar Michael Le Du avatar  avatar Esteban Solano avatar Gregg Shanefelt avatar Joshua Turton avatar Rafael Monroy avatar Edward Zwart avatar Sean Hanford avatar Mario Moorhead avatar  avatar Jace Poirier-Pinto avatar Phase2 Code Review avatar Erasmus avatar Angel Hañari avatar Geoff Hankerson avatar Rich Tolocka avatar Kyle Sorrels  avatar Austin Prohl avatar  avatar Drew Garman avatar Tim Martin avatar Chris Strahl avatar Jacob Samuel Rockowitz avatar Hugo Naili avatar Jeff Walpole avatar Josh Mitchell avatar Jonathan Adams avatar Joe avatar  avatar Dave Murray avatar Jason Staph avatar Lauren Bocook avatar Geoff Winner avatar Michael Kochendorfer avatar Ayana Powell avatar Caroline Casals avatar Ryan Loos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.