GithubHelp home page GithubHelp logo

collective / collective.newsticker Goto Github PK

View Code? Open in Web Editor NEW
4.0 111.0 4.0 377 KB

A horizontal, text-based display dedicated to presenting headlines on a site.

Python 59.40% JavaScript 33.98% CSS 6.62%
plone news-ticker

collective.newsticker's Introduction

News Ticker

A horizontal, text-based display dedicated to presenting headlines on a site.

  • jQuery-based, lightweight and easy to use
  • Configurable via configlet
  • Users have full control on what items to display by using collections

Got an idea? Found a bug? Let us know by opening a support ticket.

To enable this product in a buildout-based installation:

  1. Edit your buildout.cfg and add collective.newsticker to the list of eggs to install:
[buildout]
...
eggs =
    collective.newsticker

After updating the configuration you need to run ''bin/buildout'', which will take care of updating your system.

Go to the 'Site Setup' page in a Plone site and click on the 'Add-ons' link.

Check the box next to ''News Ticker'' and click the 'Activate' button.

  • Open 'News Ticker' configlet on Plone's 'Site Setup'.
  • Select the collection containing the items you want to display.

That's it! You will see the items included in the collection on a site-wide news ticker.

You can click on any item to open it.

https://github.com/collective/collective.newsticker/raw/master/configlet.png

The configlet.

https://github.com/collective/collective.newsticker/raw/master/newsticker.png

The News Ticker in action.

collective.newsticker's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collective.newsticker's Issues

Follow viewets pattern

seems the viewlet is not following the viewlet pattern as defined in the documentation.

  • don't declare the template on ZCML
  • review enabled/disabled
  • review tests
<browser:viewlet
    name="collective.newsticker"
    for="*"
    manager="plone.app.layout.viewlets.interfaces.IAboveContent"
    class="collective.newsticker.browser.NewsTickerViewlet"
    template="newsticker_viewlet.pt"
    permission="zope2.View"
    layer="collective.newsticker.interfaces.INewsTickerLayer"
    />

TypeError on Plone 5

while trying to use this package under Plone 5.1 I get the following error:

TypeError: $(...).get(...) is undefined

selection_017

Instance raises Conflicting configuration actions

  • Plone 4.3.11
  • collective.lazysizes 2.0.5rc1
  • collective.newsticker 2.1b1

Instance don't start and raise the following error:

2017-03-21 17:48:29 INFO ZEO.ClientStorage zeostorage Disconnected from storage: "('localhost', 8100)"
Traceback (most recent call last):
  File "/opt/plone/buildout/parts/instance1/bin/interpreter", line 384, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
    run()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 22, in run
    starter.prepare()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 92, in prepare
    self.startZope()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 268, in startZope
    Zope2.startup()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 118, in startup
    load_zcml()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
    load_site()
  File "/opt/plone/buildout/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
    _context = xmlconfig.file(site_zcml)
  File "/opt/plone/buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 651, in file
    context.execute_actions()
  File "/opt/plone/buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 620, in execute_actions
    for action in resolveConflicts(self.actions):
  File "/opt/plone/buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 1527, in resolveConflicts
    raise ConfigurationConflictError(conflicts)
zope.configuration.config.ConfigurationConflictError: Conflicting configuration actions
  For: ('upgradeDepends', '1', '2', None, "[u'plone.app.registry']", 0)
    File "/opt/plone/buildout/eggs/collective.lazysizes-2.0.5rc1-py2.7.egg/collective/lazysizes/upgrades/v2/configure.zcml", line 18.4-23.10
          <genericsetup:upgradeDepends
              title="Add new field to configlet"
              description="Reload registration of configlet registry to add new field."
              import_steps="plone.app.registry"
              run_deps="false"
              />
    File "/opt/plone/buildout/eggs/collective.newsticker-2.1b1-py2.7.egg/collective/newsticker/upgrades/v2/configure.zcml", line 12.4-17.10
          <genericsetup:upgradeDepends
              title="Add 'enabled' field to configlet"
              description="Reload registration of configlet registry to add new field."
              import_steps="plone.app.registry"
              run_deps="false"
              />

Allow limitting collection results

It'd be nice to limit the collection's amount of results, just as it is possible with Collection portlets. This avoids creating dedicated collections to serve the newsticker.

JS error

With Plone 5.0.4 after activating the add-on I had a JS error. To allow the site and news ticker to function correctly I had to enable JS dev mode in the configuration registry.

newstickerjserror

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.