Skip to main content

BBCode Snippet Support for Plone

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.

Further features:

  • The Plone toolbar got a new menu to copy BBCode templates for the active BBCodes.

  • TinyMCE got a new menu to insert BBCode templates.

  • There is a demo page with all activated BBCodes at the portal root under @@bbcodesnippets-demo.

  • A boolean index has_bbcodes got added to the portal_catalog. Content with active or inactive BBCcodes in any of their text or richtext Dexterity schema fields are indexed True.

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.

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-2.0.0.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collective_bbcodesnippets-2.0.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file collective_bbcodesnippets-2.0.0.tar.gz.

File metadata

File hashes

Hashes for collective_bbcodesnippets-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a83cb73451455ef2d34ba17b38ca1e190463d16309ada1a77df7f9366f721559
MD5 b4db84ad2ce41c21f52a535ce546c8cc
BLAKE2b-256 c3b6f978a1a956ee4444a68212bd905c9675792cc565e14700724f602bca654e

See more details on using hashes here.

Provenance

The following attestation bundles were made for collective_bbcodesnippets-2.0.0.tar.gz:

Publisher: release.yaml on collective/collective.bbcodesnippets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file collective_bbcodesnippets-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collective_bbcodesnippets-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f104a8d958973e608d3765eadf4e06f34f38533444a13803c135bba3ab01d99
MD5 6875fa032e3d4e3418336d040bc9ec85
BLAKE2b-256 78f36eeb40f159d9b493c73163a44f52c49ab1859d2ad22f4dc8668fcc700c8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for collective_bbcodesnippets-2.0.0-py3-none-any.whl:

Publisher: release.yaml on collective/collective.bbcodesnippets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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