Hello everyone,
I am stuck with a query here kindly help me rectify it. I am trying to access the contents of customer page(content type) in the marks page(content type). Both the content types are created by me in my own add-on. I have attached the diagram of the scenario.
Here is the code snippent:
/browser/configure.xml:
-----------------------
<browser:page
name="customerview"
for="*"
class=".customers.CustomersView"
template="templates/customerview.pt"
permission="zope2.View"
/>
<!--Mark Template-->
<browser:page
name="markview"
for="*"
class=".mark.MarksView"
template="templates/markview.pt"
permission="zope2.View"
/>
The python class files:
#CustomerView
from Products.Five.browser import BrowserView
from plone.dexterity.browser.view import DefaultView
from plone import api
class CustomersView(DefaultView):
"""Customer Browser view"""
#MarksView
from Products.Five.browser import BrowserView
from plone.dexterity.browser.view import DefaultView
from plone import api
class MArksView(DefaultView):
"""Marks Browser view"""