File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ public function injectJnPhpContentRepository(\Joppnet\JnPhpcontentelement\Domain
4040 */
4141 public function listAction ()
4242 {
43- // \TYPO3\CMS\Core\Utility\DebugUtility::debug($this->jnPhpContentRepository->findAll());
4443 $ jnPhpContents = $ this ->jnPhpContentRepository ->findAll ();
4544 $ this ->view ->assign ('jnPhpContents ' , $ jnPhpContents );
4645 }
Original file line number Diff line number Diff line change 1717 */
1818class JnPhpContentRepository extends \TYPO3 \CMS \Extbase \Persistence \Repository
1919{
20- public function initializeObject ()
21- {
22- /** @var $defaultQuerySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */
23- $ defaultQuerySettings = $ this ->objectManager ->get ('TYPO3 \\CMS \\Extbase \\Persistence \\Generic \\Typo3QuerySettings ' );
24- $ defaultQuerySettings ->setRespectStoragePage (true );
25- }
20+ public function findAll ()
21+ {
22+ $ query = $ this ->createQuery ();
23+ $ storagePageIds = $ query ->getQuerySettings ()->getStoragePageIds ();
24+ if (is_array ($ storagePageIds ) && array_search (0 , $ storagePageIds ) !== false ) {
25+ $ query ->getQuerySettings ()->setStoragePageIds ([$ GLOBALS ['TSFE ' ]->id ]);
26+ }
27+ return $ query ->execute ();
28+ }
2629}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugin.tx_jnphpcontentelement_phpcelist {
99 layoutRootPaths .1 = { $plugin . tx_jnphpcontentelement_phpcelist . view . layoutRootPath }
1010 }
1111 persistence {
12- storagePid >
12+ #storagePid = { $plugin . tx_jnphpcontentelement_phpcelist . persistence . storagePid }
1313 #recursive = 1
1414 }
1515 features {
Original file line number Diff line number Diff line change 1414 'title ' => '[joppnet] PHP Content Elements ' ,
1515 'description ' => 'PHP content elements via frontend plugin. ' ,
1616 'category ' => 'plugin ' ,
17- 'version ' => '1.1.8 ' ,
17+ 'version ' => '1.1.9 ' ,
1818 'state ' => 'stable ' ,
1919 'uploadfolder ' => false ,
2020 'clearcacheonload ' => true ,
You can’t perform that action at this time.
0 commit comments