Skip to main content

Add BBCode in the site and transform it.

Project description

collective.bbcodesnippets provides pervasive, generic and extensible BBCode Markup integration for Plone.

Functionality

collective.bbcodesnippets replaces BBCode in the whole generated HTML output. BBCode snippets can be placed everywhere in the site.

At transform time at the end of the chain, before or after Diazo (configurable), the output is parsed and all BBCode will be replaced.

The BBCode parser only replaces configured BBCode snippets. At the control panel all registered BBCodes are listed to be activated. By default all codes are inactive.

This package utilizes the excellent bbcode package from Dan Watson to parse and replace. We register all default formatters as named utilities which are used as factories for the formatter using the Zope Component Architecture (ZCA). Custom parsers can be provided by registering an own named utility. Before parsing at transform time new Parser is created using the configured adapters only.

Installation

Install collective.bbcodesnippets by adding it to your buildout:

[buildout]

...

eggs =
    collective.bbcodesnippets

and then running buildout.

Afterwards (re)start Plone, go to the controlpanel and install the addon.

Then there is a conrol-panel to control the allowed BBcodes.

Source Code

Build and Test

The sources are in a GIT DVCS with its main branches at github.

We’d be happy to see many forks and pull-requests to make collective.bbcodesnippets even better.

Contributors

Thanks to St. Pölten University of Applied Sciences for initial funding.

History

1.0.0a5 (2021-05-25)

  • Use lxml.html.fromstring for inner HTML parsing to ingest not-so-perfect HTML. [jensens]

  • Remove explicit order of registration - it has no effect. [jensens]

1.0.0a4 (2021-05-23)

  • Enable explicit order of registration. [jensens]

1.0.0a3 (2021-05-19)

  • Explicit load plone.restapi ZCML to have profile available.

1.0.0a2 (2021-05-19)

  • Explicit load plone.rest ZCML to have “plone.service” defined. [jensens]

1.0.0a1 (2021-05-19)

  • Fix package configuration [jensens]

1.0.0a0 (2021-05-18)

  • Initial work [jensens]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.bbcodesnippets-1.0.0a5.tar.gz (22.6 kB view hashes)

Uploaded Source

Built Distribution

collective.bbcodesnippets-1.0.0a5-py2.py3-none-any.whl (30.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page