Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

overrides.zcml

  • Loading branch information...
commit 5be3fde83b9427c758d8114e786cd9ddda5ba41f 1 parent 1ccb09e
Mikko Ohtamaa authored

Showing 1 changed file with 24 additions and 0 deletions. Show diff stats Hide diff stats

  1. 24  source/components/zcml.txt
24  source/components/zcml.txt
@@ -66,3 +66,27 @@ When Plone is started all ZCML files are picked  up.
66 66
 * (old way) ZCML reference must be manually added to zcml = section in buildout.cfg
67 67
 
68 68
 If ZCML contains errors :doc:`Plone does not start up on foreground </troubleshooting/basic>`
  69
+
  70
+Overrides
  71
+------------
  72
+
  73
+Besides :doc:`layers overrides <serving/layers>` ZCML provides more hardcore way to override things in buildout.
  74
+These overrides can also override utilities etc. and overrides take effect during ZCML parsing, not when site is run.
  75
+
  76
+* Create ``overrides.zcml`` file in your egg to the same folder as ``configure.zcml``
  77
+
  78
+* Syntax is 100% same as in ``configure.zcml``
  79
+
  80
+* Add the line in buildout::
  81
+
  82
+     zcml =
  83
+        ...
  84
+        myegg-overrides
  85
+
  86
+* Rerun buildout
  87
+
  88
+* Restart Plone
  89
+
  90
+.. note ::
  91
+
  92
+    overrides.zcml must be explicitly specified in buildout.cfg and is never automatically included from eggs

0 notes on commit 5be3fde

Please sign in to comment.
Something went wrong with that request. Please try again.