Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove portlets in edit mode with Plone 4?

Tags:

plone

I'm used to achieve this under Plone 3 by override base_edit.cpt file under portal_skin and make columns empty:

  <metal:head fill-slot="column_one_slot"></metal:head>
  <metal:head fill-slot="column_two_slot"></metal:head>

I have tried to achieve this with Plone4 and the result is quite weird: I have two empty columns and the edit mode doesn't stretch (stay in the middle of the page).

like image 505
toutpt Avatar asked Jan 19 '23 20:01

toutpt


1 Answers

In Plone 4 you can disable the columns by setting a couple variables on the request:

<metal:override fill-slot="top_slot"
    tal:define="disable_column_one python:request.set('disable_plone.leftcolumn',1);
                disable_column_two python:request.set('disable_plone.rightcolumn',1);"/>
like image 90
David Glick Avatar answered Jan 30 '23 23:01

David Glick