title: Plone 4: Accessing content via a custom ID in path
body: <p>Heya I'm fairly new to Plone development. And I'm sitting with a problem. </p>
  
  <p>I have a folder in Plone that contains products.</p>
  
  <pre><code>http://plonesite/products
  </code></pre>
  
  <p>What I would like to do, is to access the products directly when a call like this is made. </p>
  
  <pre><code>http://plonesite/products/4244-24
  </code></pre>
  
  <p>Preferably I want to mark the folder with a custom interface IE. <em>IProductFolder</em>. So whenever a user access: </p>
  
  <pre><code>http://plonesite/products
  </code></pre>
  
  <p>a script needs to be called and check whether there is a product number in the URL and perform a catalog search and redirect to the product. If the search doesn't return any results or the argument after <strong>/products/</strong> is invalid it just continues to render the page.</p>
  
  <p>I just don't know how to do this kind of setup. I've looked into adapters but they won't even work. Can anyone help me with a quick example?</p>