ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Custom publish layout hide fields - no way to get them back

July 26, 2010 11:23am

Subscribe [3]
  • #1 / Jul 26, 2010 11:23am

    Studio Meta

    105 posts

    Hello,

    When making custom publish layouts (ie: hidding tabs/options…) it also hide ALL the publish fields (required and custom fields).

    Attached is a capture.

    I’ve tried it on latest EE2.1 version, on both Safari 5 and Firefox 3.6.8 Mac.

    In this example, a custom publish layout is made for a custom member group, but it also break if I save custom layout for Administrators.

    EDIT : There’s a JavaScript error for Wygwam :

    “uncaught exception: [CKEDITOR.editor.replace] The element with id or name “field_id_1” was not found.

    Line 0”

    But it also break when wygwam is uninstalled.

    Any clue on how to get my fields back please ?

  • #2 / Jul 26, 2010 6:58pm

    Brandon Jones

    5500 posts

    Studio Meta,

    In the sidebar of the Publish screen, select all member groups and then click Remove Layout. This should revert all of that channel’s layouts to default. Does that help?

  • #3 / Jul 27, 2010 4:22am

    Studio Meta

    105 posts

    Well, when I reset the layout, the fields are reappearing, but when trying to hide some fields/tabs, all the publish fields are hidden.

    I’m pretty sure it’s a bug, and it’s really annoying !

  • #4 / Jul 27, 2010 6:20am

    VRDL

    24 posts

    Hi,


    I have got the same problem… I have tried everything: from removing all third-party modules to a brand new install of EE2.1. But nothing helps!  Please fix!


    Thanks,

    Greetings Rommert

  • #5 / Jul 27, 2010 8:50am

    Studio Meta

    105 posts

    While investigating, I found that not only theses required fields are not visible, but they aren’t in the HTML, which explain my previous JavaScript Error.

    Here’s the posted data when saving layout :

    XID=26061ee1818bf14e588b90307042b61b25fa06be&json;_tab_layout={"Publier":{"ping":{"visible":false,"collapse":false,"htmlbuttons":true,"width":"100%","index":1}},"Date":{"entry_date":{"visible":true,"collapse":false,"htmlbuttons":true,"width":"100%","index":0},"expiration_date":{"visible":true,"collapse":false,"htmlbuttons":true,"width":"100%","index":1}},"Options":{"new_channel":{"visible":false,"collapse":false,"htmlbuttons":true,"width":"120%","index":0},"status":{"visible":true,"collapse":false,"htmlbuttons":true,"width":"100%","index":1},"author":{"visible":true,"collapse":false,"htmlbuttons":true,"width":"100%","index":2},"options":{"visible":false,"collapse":false,"htmlbuttons":true,"width":"120%","index":3}}}&member;_group[]=6&channel_id=2

    As you can see, the “Publish” data send when saving is empty (just contain “ping” and “htmlbuttons”.

    Still investigating, but it seems to be a bug. Any folks at EllisLab may help ?

  • #6 / Jul 27, 2010 9:19am

    Studio Meta

    105 posts

    Ok I got it : it’s working in english because the array key is “publish”, but in my example using the french language pack, the array key is “Publier”, so it broke the save_layout() function.

    I’m going to post a bug report.

  • #7 / Jul 27, 2010 6:53pm

    Brandon Jones

    5500 posts

    Nice catch. Please link to the bug report here. Thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases