title: Set TYPO3 extbase storagePageIds / storagePid to current
body: <p>I am using the TYPO3 extension feupload, which relies on extbase. This is my first contact with extbase.
  But the question is about extbase in general.</p>
  
  <p>I expect TYPO3 to include the usual "IN (current-page)" pid check by default in queries, unless told otherwise - but in extbase that seems to be different. Or at least in my case, it's not working.</p>
  
  <p>In the extension, there is a constants / setup setting, where the storagePid can be set. This works.
  But we don't want to adapt that parameter manually for each page.</p>
  
  <pre><code>persistence {
         # cat=feupload/persistence; type=integer; label=Storage PID of records
         storagePid =
  }
  </code></pre>
  
  <p>So how do I make extbase get the PID of the current page automatically as expected?</p>
  
  <p>(Sub-question: I've tried to set plugin.tx_pluginname.persistence.storagePid.data = {page:uid} in setup, but that wouldn't work. What would the TS have to look like to work?)</p>