Closed (duplicate)
Project:
Omega
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2013 at 13:44 UTC
Updated:
8 May 2013 at 16:54 UTC
in omega 4 I can create the same layouts as needed for the context layouts module
but the module does not know about them if I do not manually will create the same record in theme.info
I get the dubious code duplication
may need to create a hook_context_layouts_info and implement it in the template.php
Comments
Comment #0.0
Punk_UnDeaDfix link
Comment #1
msmithcti commentedI'm not entirely sure I understand the question, however @attiks has created Context Omega which allows you to change Omega 4.x layouts using context.
Comment #2
smerth commentedsplatio,
I created three layouts each consisting of a layout.inc file and and layout.tpl.php file, each inside it's own folder, which are inside the layout folder in my omega subtheme. I put layout.scss files each in their own folder, inside the layouts folder in the sass folder of the subtheme. Ruby created the appropriate css files in the css folder in the subtheme.
So far so good.
Under the subtheme settings in the UI their is a place to turn on the Layouts Extention, which I have done. However I am only able to choose one layout not multiple layouts. (I assumed you should check each of the layout you want to have active in the subtheme... but maybe I am only allowed to choose one because that is suppose to be the default???)
Under contexts, I add the context choose Context_Omega for the response however there is no menu to choose a layout instead there is a message "Either omega isn't active or the omega cache is empty."
It looks like that text is generated by Context_Omega after it checks the settings for Layout Extension...
Do you know if I am missing a step? Any ideas about how to troubleshoot this issue?
Comment #3
fubhy commented@smerth this issue is unrelated for your question. Also, you already posted an identical comment on the other issue over at the omega_context module issue queue #1989650: Either omega isn't active or the omega cache is empty. Please do NOT post duplicate comments all over the place. It's not going to help you get your question answered any faster and in unnecessarily wasted module/theme maintainers time.
Comment #4
attiks commentedsee #1989650: Either omega isn't active or the omega cache is empty, I just fixed it (i think)
Comment #5
smerth commentedSorry about posting duplicate messages. It won't happen again.
You are right. There were two issues. The cache issue related to seeing the menu to choose the layout. That was fixed after your comment #1. I will try the patch in Comment #4.
The other issue of context not displaying the layout once it was chosen is also fixed. I made a mistake setting them up.
Thanks for your help. And BTW, the changes you are making to Omega4 are... Great!
Comment #5.0
smerth commentedUpdated issue summary.