0.1.6 • Published 8 months ago

@imiobe/plonetheme-smartweb-base v0.1.6

Weekly downloads
-
License
GPL version 2
Repository
-
Last release
8 months ago

=================

Theme Development

Tooling

Install dependencies

Run npm install to add dependencies from package.json::

.. code-block:: shell

$ npm install

Compile resources

Run npm run build to add dependencies from package.json::

.. code-block:: shell

$ npm run build

This will compile your scss/theme.scss into css/theme.css. A minified version () will be created as well. Check out the scripts section from package.json so see what happens exactly.

Watch for changes

Run npm run watch to automatically compile when a file has been changed::

.. code-block:: shell

$ npm run watch

With npm run watch you start the build process automatically when you save a file.

Configuring Plone within the theme package

To configure Plone when this package is installed, you can use GenericSetup profiles in profiles/default. To revert the settings when the package is being uninstalled, place the default Plone configurations inside the profiles/uninstall folder.

Providing new template or override existing once

Providing new templates

To add new views with your package, you can use plonecli.

.. code-block:: shell

plonecli add view

Depending how you answered the questions, you will now have a new view, which can have a Python file for the logic and a template for the presentation.

Overriding existing templates

To override a template, you place the template into the browser/overrides folder.

The name of the template has to be the dotted namespace + templatename.

.. code-block:: shell

browser/overrides/plone.app.layout.viewlets.logo.pt

More info here: https://pypi.org/project/z3c.jbot/

Providing new templates and Python Scripts, alternative solutions

  • collective.themefragments <https://pypi.python.org/pypi/collective.themefragments/>_
  • plone.app.themingplugins <https://pypi.python.org/pypi/plone.app.themingplugins/>_
  • collective.themesidesetup <https://pypi.python.org/pypi/collective.themesidesetup/>_
0.1.6

8 months ago

0.1.4

11 months ago

0.1.5

11 months ago

0.1.0

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.3

11 months ago

0.0.6

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago