Plone:static and layer

Hi!

is there a way to do something like this:

  <plone:static
      name="mytheme"
      layer="mytheme.interfaces.IMythemeLayer"
      type="plone"
      directory="static"
      />

?

The layer parameter does not works:

zope.configuration.exceptions.ConfigurationError: ('Unrecognized parameters:', 'layer')

layer is valid with browser:resourceDirectory.

I usually register my theme during add-on installation. You can read about it here: How to make a Plone theme available (for activation) after installation as an add-on - Thomas Massmann

1 Like