While customizing my plone-based application, I successfully created the view by creating following files:
my_view.py
my_view.pt
I made the entry in configure.zcml and I can access the view by typing URL in browser. But, I am unable to display the tab along-with other tabs being displayed for this Type.
I entered action element for this view in the following file:
profiles/default/types/MyType.xml
Please help; do I need to make entry in some other file?
Thanks a lot. The name of my type is AnalysisRequest, I can see following line in profiles/default/types.xml:
Then, I found following file 'AnalysisRequest.xml' at path profiles/defaults/types. I opened this file and added following property in this file (as suggested by you):
I ran the buildout script and checked, but the new tab was not added for 'AnalysisRequest'.
Moreover, I can see 6 tabs for AnalysisRequest but no view is defined in 'AnalysisRequest.xml' file. I am unable to find any entry for these 6 views in any xml file.
Buildout has nothing to do with your site configuration in particular with the types XML files. You need to reimport the related profile through portal_setup or just make the changes for now manually in the ZMI in portal_types.