1

I want to customize Plone's folder_contents to add an 'edit'-link to each listed item, like show in the image below.

How would one do that?

enter image description here

Ida
  • 3,994
  • 21
  • 40
Andy
  • 213
  • 1
  • 9
  • Please be more specific about what you are trying to accomplish. This is likely already in Plone out of the box (in 5.0.6) for you, in the drop-down for each item in the "Actions" column of the contents. See: https://snag.gy/rVStpR.jpg – sdupton Feb 25 '17 at 05:58
  • Yes I know "edit" in the actions column, but our customer wants to change location to operate faster. – Andy Feb 25 '17 at 16:07
  • I'm still unclear what you want, but using jbot is the preferred way to make a tiny change to a stock template in an override in (any) add-on package. Google for plone+jbot, and you will find docs. – sdupton Feb 26 '17 at 17:45
  • Looks to me Andy wants to customize the folder_contents-template and extend each item's row with an edit-link, so one does not have to make the extra click to the single-view first, before being able to hit edit. With Plone-4 that's easy, but I don't know how it's done with Plone-5. – Ida Feb 27 '17 at 06:53
  • 1
    @IdaEbkes, Yes, This is what I need. I don't know how it's done with Plone-5, too. – Andy Mar 01 '17 at 00:05
  • Have a look at how Castle CMS (a Plone distribution) does it, http://github.com/castlecms/castle.cms – T. Kim Nguyen Mar 05 '17 at 13:51
  • Also, you may have more luck asking questions in https://community.plone.org – T. Kim Nguyen Mar 05 '17 at 13:51
  • Plone-5.1 added an edit- and a view-button next to each list-item. – Ida Apr 13 '18 at 08:21
  • Dup of https://stackoverflow.com/questions/41388818/how-to-customize-folder-contents-on-plone-5 – Ida Apr 30 '18 at 10:36

2 Answers2

0

There is a file called table.xml but I have not tried it. It is very cumbersome to change something internal in Plone.

Parth
  • 1,281
  • 8
  • 17
  • Can very much understand your frustration, but please do not use answers for leaving comments. – Ida Apr 30 '18 at 10:41
0

Looks like the right way to do it is loading the module and changing it's prototype:

var structure = require('mockup-patterns-structure');
structure.prototype.defaults._default_activeColumns = ["ModificationDate","EffectiveDate","review_state","id","Type"]
rodfersou
  • 914
  • 6
  • 10