Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      From Gitter

      Jordi Puiggené Jun 29 10:55

      You can add your own add-on and create your own adapter by making use of the IFrontPageAdapter like follows:

      from bika.lims import api
      from bika.lims.interfaces import IFrontPageAdapter
      from zope import interface

      class MyFrontPageAdapter(object):
          interface.implements(IFrontPageAdapter)

          def get_front_page_url(self):
              return api.get_url("my_frontpage")

      Register the adapter in configure.zcml:

      <configure
          xmlns="http://namespaces.zope.org/zope">

        <!-- Adapter for custom front-page  -->
        <adapter
          factory=".myfrontpage.MyFrontPage"
          provides="bika.lims.interfaces.IFrontPageAdapter"
          for="*" />

      </configure>

      And add your view ' MyFrontPage` in "myfrontpage.py" and template.

      Alternatively (not recommended), you can tweak the "vanilla" template: https://github.com/senaite/senaite.core/blob/1.3.x/bika/lims/browser/templates/senaite-frontpage.pt

      Please, refer to Plone developer documentation for further info on how to add your views, templates, adapters, etc.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            lemoene lemoene
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: