title: AEM - How to restrict a template from showing in a certain path
body: <p>I wonder if someone has achieved what I'll post here. In order to allow a template to be created under a certain path, there is a flag <code>allowedPaths</code> that receives a regex.</p>
  
  <p>So, if I want my template <code>"test"</code> to appear only under <code>/content/www/xx/xx/test-templates</code> and child elements, I can do this:</p>
  
  <pre><code>/content/www/.*/.*/test-templates(/.*)?
  </code></pre>
  
  <p>But what if I want to make the opposite? I want the template <code>"test"</code> to appear in every <code>/content/www/xx/xx/</code> node and beyond, EXCEPT <code>/content/www/xx/xx/test-templates</code> and children?</p>
  
  <p>I have tried several ways but no luck so far. Do you have some hint regarding this?</p>
  
  <p>Thanks!</p>