Panels, Openpublish and custom frontpages

Events happening in the community are now at Drupal community events on www.drupal.org.
kenyan's picture

I am using OP 2.0.
I basically do not mind the stock OP theme. But I have absolutely no use for content regions that will not collapse when empty for one and I would prefer a slightly different layout.
So I figured that instead of going the subtheme way ( I lack the skills), I would simply create a new Panel page, set to be my homepage, disable the frontpage context (it has its own idea of regions as far as I am concerned), load content just the way I want and .......
Well, not voila!

In essence then, is a panel page under the openpublish theme considered with as much disdain as a non-conforming theme?
This would really suck cause all i need is a slightly different layout that makes a whole lot of difference for my site. I'd hate to have to learn how to sub-theme all because of a simple stacked layout that could have been solved by panels 2 (3).
Ideas guys?

Comments

Panel page is definitely not

irakli's picture

Panel page is definitely not looked at "with much disdain" :)

As a matter of fact Author pages are panel pages, as are Topic Hub pages.

You can definitely use panels for the frontpage and that does not require not using sub-theme. We strongly suggest using sub-theme because in the long run it will make things easier. You don't have to use it, but in my opinion that won't help "lacking the skills" you advocated to. You probably need even more technical/Drupal skills to build a theme from scratch than if you use openpublish theme as your base theme.

Did you get a chance to take a look at sub-theming documentation on http://openpublishapp.com? I am wondering what left an imperssion that sub-theming would be more challenging than helpful.

Thank you.

.............................................
http://twitter.com/inadarei

@kenyan At the beginning, I

stattler's picture

@kenyan

At the beginning, I was afraid about subtheming as well. But when I read the drupal documents on subtheming, I realized that it is actually very very very simple. Now with the OP documentation, you don't have to look further-- see it here http://openpublishapp.com/doc/your-first-openpublish-subtheme

Diving in :)

kenyan's picture

Guys..
I looked at the two links by Irakli and statalk and decided to follow the simple tutorial.
You should have seen the smile on my face when a theme called 'Elgon' suddenly showed up on my selections.
I've just copied the components.css into the new css file in my subtheme folder and editing that.
I even have the regions I required - (Well,at least they show up in /admin/build/block) - Just not gotten to how I actually put them where I want.

All in all, I wish I had attempted this before.
Thanks guys..
Will update...

By the way, @stattalk, got

kenyan's picture

By the way, @stattalk, got your mail and replied. Thanks

Stuck

kenyan's picture

Okay, I'm now stuck after playing around with sub-theming.
I now created two new regions which I need to place side by side on top of the "ontop of content" OP region.
I've then removed the two sidebars (will return them later if needed)
So now, I can see the regions from admin/build/block..
I go override the frontpage context and move "Homepage Featured article' to the first region I just created and 'Homepage Ad to the second.
Go to frontpage and...
Nothing!!

My .info:

name = Elgon
description = Elgon: An OP SubTheme
base theme = openpublish_theme
version = VERSION
core = 6.x
engine = phptemplate

; SubTheme-Specific CSS
stylesheets[all][]   = css/elgon-main.css

; Print-version styles
stylesheets[print][] = css/elgon-print.css

regions[header] = Header
regions[header_right] = Right Header
regions[left] = Left Sidebar
regions[right] = Right Sidebar
regions[editorial] = Editorial
regions[editorial_ad] = Editorial Ad
regions[over_content] = On Top of Content
regions[content] = Content
regions[under_content] = Underneath the Content
regions[footer] = Footer

Ive just reintroduced the sidebars.

My page.tpl (relevant area)

<!-- /#begin new regions -->
 
  <div style="float: left;">
    <?php print $editorial; ?>   
  </div>
  <div  style="float: right; width: 400px;">
    <?php print $editorial_ad; ?>   
  </div>
  <!-- /#end new regions -->
 
  <div id="op-over-content" style="clear: both;">
    <?php print $over_content; ?>   
  </div>

I've cleared cache etc and there is content present and published.
What am I missing?

Maybe not..

kenyan's picture

I may have spoke too soon.
It should have been obvious to me that frontpage is rendered by page-front.tpl.php.
I moved that over to my sub-theme. I had also previously moved over page-footer.tpl.php and page-header.tpl.php (a requirement or errors are encountered).

This seem to be running along just fine. Of course now since I have no css added, its all wacked out.
But thing is, I now know it works just fine and I can now fix my frontpage just the way I want!

Internet Explorer Issues

kenyan's picture

Ok.
Everything is working beautifully for me so far with firefox.
Its a weird story with IE though:

All views content pages are showing up as I expect. Taxonomy term pages are fine. Basically everything is just fine. Until I try to look at an individual Article.
All css is broken with all menus degrading to unthemed lists.
This phenomenon seems to only affect menus while viewing articles and nothing else! All menus apart from the main admin menu (triangle).
I've switched back and forth between themes and I cannot trace the problem.

One thing that is of interest though... AND I BELIEVE IT IS KEY is that if I disable the 'Article Detail' context, everything works fine. Just that of course now I have nothing at right since I'm not using regular blocks.
Anyone? Is the info too thin?

Update..

kenyan's picture

More weirdness:
When I disable the said 'Articel detail" context, the menus are now themed and are no longer in list form.
BUT, they now pick up the overriden CSS styles of the default OP theme and ignore those of the subtheme.
Riddle me that!

Fixed! User signal directed

kenyan's picture

Fixed! User signal directed me to optimize CSS in perfomance settings.
Who knew!
See:
http://groups.drupal.org/node/65483

Panels/OpenPublish generating Include Warnings

Arts and Ideas's picture

I've placed a panel at /home (with site info updated to /home) and have placed content into the panel.

I get:
warning: include(./sites/all/modules/openpublish_core/op-related-terms.tpl.php) [function.include]: failed to open stream: No such file or directory in [..]/includes/theme.inc on line 1066.
warning: include() [function.include]: Failed opening './sites/all/modules/openpublish_core/op-related-terms.tpl.php' for inclusion (include_path='.:/opt/php/pear') in [..]/includes/theme.inc on line 1066.

I've not fully initiated a my sub-theme, so this is just a raw Panels/OpenPublish error. There is no content placed or previewed on this panel/page.

Can anyone direct me to a first step in answering this issue?

Ignore it. I guess we all are

stattler's picture

Ignore it. I guess we all are getting this error. They need to fix it.

Decisions

Arts and Ideas's picture

Decisions to "jump into bed" with OpenPublish on 4-6 news and magazine production sites will depend upon if this fix happens promptly. This is central to their mission.

Are you using a theme that is

christian.schorn's picture

Are you using a theme that is not a child theme of openpublish_theme? In that case, copy op-related-terms.tpl.php from openpublish_theme/components in your theme directory, clear the theme cache and the error should go away.

subscribing got the warning:

alfthecat's picture

subscribing

got the warning: include(./sites/all/modules/openpublish_core/op-related-terms.tpl.php error after installing the subscriptions module. Which requires the 'content' region that seems to be unavailable. Also, a subscription link is available that causes the site to switch to the displaying the node in the admin theme Rubik.

I am sure I have updated the admin module thought, so the latter may have been my fault...

People make mistakes. But to really mess something up you need a computer.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week