Hi,
I'm trying to change the style of some regions in "panels - custom layout".
I'm changing the style of a region then saving but when I open the layout again I see there is no styling properties at all.
Also when I try to add content to the layout it just doesn't appears.
I tried the same on a different layout, but with no success.

My goal is to make a designed view's panel layout for a catalog of pages.

Thanks,
Amir.

CommentFileSizeAuthor
#8 layout export.txt1.84 KBrafaqz
Can't change the style54.44 KBamirc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

The part you have circled says that the style is currently 'Default', and if you click 'Change' it will allow you to change this. What happens when you click change?

amirc’s picture

I can change to what ever I like.
Then it looks like it works but when I save it and edit again the layout region's style are "default".
When I try to add content to a region, the "add content" menu is open I can choose a content.
But after I choose a custom content thers no change at all in the layout.

Letharion’s picture

Can you try creating a new panel page with a fixed layout, and see if the same problem happens there too?

amirc’s picture

"panel page" is working great.
But I need custom layout for Views.

merlinofchaos’s picture

Check your php and watchdog logs. Is there some kind of database error when saving the panel?

amirc’s picture

There are no errors at all =\
b.t.w
Im working with CTools 7.x-1.0-rc1.
is it fine?

amirc’s picture

I have an idea,
I want to import a layout with custom style.
Can someone please add some custom "Stylizer" style to this layout and post it back?

Thanks,
Amir.

$layout = new stdClass;
$layout->disabled = FALSE; /* Edit this to true to make a default layout disabled initially */
$layout->api_version = 1;
$layout->name = 'catalog_item';
$layout->admin_title = 'Catalog item';
$layout->admin_description = 'Catalog item for bar \\ party.';
$layout->category = 'PartyIL';
$layout->plugin = 'flexible';
$layout->settings = array(
  'items' => array(
    'canvas' => array(
      'type' => 'row',
      'contains' => 'column',
      'children' => array(
        0 => 1,
        1 => 'main',
      ),
      'parent' => NULL,
      'class' => '',
      'column_class' => '',
      'row_class' => '',
      'region_class' => '',
      'no_scale' => FALSE,
      'fixed_width' => '700',
      'column_separation' => '0.5em',
      'region_separation' => '0.5em',
      'row_separation' => '0.5em',
    ),
    'main' => array(
      'type' => 'column',
      'width' => '100',
      'width_type' => '%',
      'children' => array(
        0 => 'main-row',
        1 => 3,
        2 => 4,
      ),
      'parent' => 'canvas',
    ),
    'main-row' => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'title',
        1 => 'date',
      ),
      'parent' => 'main',
    ),
    1 => array(
      'type' => 'column',
      'width' => '200',
      'width_type' => 'px',
      'parent' => 'canvas',
      'children' => array(
        0 => 2,
      ),
      'class' => '',
    ),
    2 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'img',
      ),
      'parent' => '1',
      'class' => '',
    ),
    'img' => array(
      'type' => 'region',
      'title' => 'Img',
      'width' => 100,
      'width_type' => '%',
      'parent' => '2',
      'class' => 'Stam',
    ),
    'title' => array(
      'type' => 'region',
      'title' => 'Title',
      'width' => '247',
      'width_type' => 'px',
      'parent' => 'main-row',
      'class' => '',
    ),
    'date' => array(
      'type' => 'region',
      'title' => 'Date',
      'width' => '158',
      'width_type' => 'px',
      'parent' => 'main-row',
      'class' => '',
    ),
    3 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'text',
      ),
      'parent' => 'main',
      'class' => 'Middle',
    ),
    'text' => array(
      'type' => 'region',
      'title' => 'Text',
      'width' => 100,
      'width_type' => '%',
      'parent' => '3',
      'class' => '',
    ),
    4 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => '1st',
        1 => '2st',
        2 => '3st',
        3 => '4st',
      ),
      'parent' => 'main',
      'class' => '',
    ),
    '1st' => array(
      'type' => 'region',
      'title' => '1st',
      'width' => '110',
      'width_type' => 'px',
      'parent' => '4',
      'class' => '',
    ),
    '2st' => array(
      'type' => 'region',
      'title' => '2st',
      'width' => '110',
      'width_type' => 'px',
      'parent' => '4',
      'class' => '',
    ),
    '3st' => array(
      'type' => 'region',
      'title' => '3st',
      'width' => '110',
      'width_type' => 'px',
      'parent' => '4',
      'class' => '',
    ),
    '4st' => array(
      'type' => 'region',
      'title' => '4st',
      'width' => '110',
      'width_type' => 'px',
      'parent' => '4',
      'class' => '',
    ),
  ),
);
rafaqz’s picture

Category: support » bug
Priority: Major » Normal
Status: Postponed (maintainer needs more info) » Active
FileSize
1.84 KB

I am having the same problem attempting to set the style of a region of a flexible layout (I'm hoping all pages using the layout will inherit that style?). Everything works as normal except that after save the style is still just the default. If I export the layout before saving (when the edit is still visible) the export still does not contain the style information and is identical to the export after saving.

I've attached the export of the layout, and as far as I can see it has no style information at all, though I have saved style edits multiple times, of multiple different types. There just doesn't seem to be a layouts version of

$display->panel_settings = array(
'style_settings' => array(

...

being saved or exported anywhere.

Thanks