How to configure folder_contents on Plone 5?

I am on Plone 5, and I want to change the number of columns that are displayed by /folder_contents .

If I remember correctly, the entire table is a template that is initialized using the fairly large JSON parameter data-xxx of the corresponding tag.

So, should I delve into JSON or rather pay attention to the JS template?

Is there any documentation on how to set it up anywhere? A quick google search did not display anything that mattered to me: - /

+5
source share
1 answer

It seems the correct way to do this is to load the module and change its prototype:

 var structure = require('mockup-patterns-structure'); structure.prototype.defaults._default_activeColumns = ["ModificationDate","EffectiveDate","review_state","id","Type"] 
0
source

Source: https://habr.com/ru/post/1262058/


All Articles