I've got 4.7 with RoundCube going. My theme is a variant of the Blue Marine: three fixed columns. However, I want to get rid of the columns and only have one main content area for the /mail area with round cube in it. (Otherwise it will just be too dang small -- and the top navigation will be enough for the mail page.)

I've seen the code for doing a different template for the front page:


if ($is_front) {
  include('page-front.tpl.php');
  return;
}

include("banner_chooser.php");

Is there something similar I can use to put a different template on all /mail pages?

Comments

BrendanHodge’s picture

Lot's more searching through old posts and I found this post about loading different templates for different node types.

That seemed like it should work, so I tried the code:

if ($node->type == 'mail') {/* check if it's a mail node */ 
    include 'mail-page.tpl.php'; /*load  mail-page.tpl.php */
    return; }

However, no dice.

Is there a way to get this approach to work for the RoundCube mail module?