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

Punk_UnDeaD’s picture

Issue summary: View changes

fix link

msmithcti’s picture

I'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.

smerth’s picture

splatio,

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?

fubhy’s picture

@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.

attiks’s picture

Status: Active » Closed (duplicate)
smerth’s picture

Sorry 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!

smerth’s picture

Issue summary: View changes

Updated issue summary.