I want to change my table view to show Effective Date instead of Modification Date. I went to the following files and don't see the table column for Modification Date so that I can replace it with Effective Date:
I think I found the solution. The field in question is found at plone/app/contenttypes/browser/folder.py:
@property
def tabular_fields(self):
ret = []
ret.append('Title')
if self.show_about:
ret.append('Creator')
ret.append('Type')
if self.show_about:
ret.append('ModificationDate')
return ret
Replace ModificationDate with EffectiveDate would now show Effective Date in the tabular view. Now the one million dollar question is how do I insert this change into my product itself and not having to change the information in the plone.app.contentypes product itself. Any advice would be most appreciated. Thank you.
So I am getting this error:
ncdhhscontenttype/policiesmanuals/configure.zcml line 35.2, unbound prefix. Line 35 is where <browser:pages starts. Any help would be most appreciated:
Thanks so much, Chrissy. Yes, the error disappeared!!! Thank you!
However, I think I am not pulling in the information that I need from the folder.py file. What I really need is from line 158-168, line 165 in particular: https://paste.ofcode.org/GGzSt5BYMqqJ4m3F9CDkRH
Can't help but feel that I am not declaring the "for" and the "class" under browser:pages right. Any advice would be most appreciated. Thanks so much.
from ncdhhscontenttype.policiesmanuals import _
from zope import schema
from zope.interface import Interface
from zope.publisher.interfaces.browser import IDefaultBrowserLayer
class INcdhhscontenttypePoliciesmanualsLayer(IDefaultBrowserLayer):
"""Marker interface that defines a browser layer."""
I have also noticed something else. All my tabular views are behaving as it should now except for the tabular view under eea.facetednavigation = 11.7. Do they have their own thing going on there? I have searched their entire product and could not find a tabuler_view or a listing_tabular.pt file. They do not seem to have its own tabular view which makes this so strange. Have you all come across this problem?