Commit a4bf013c authored by Andy Hausmann's avatar Andy Hausmann

Now you don't need to define the storage pid anymore if the records are on the same page.

parent 167d67b8
......@@ -64,6 +64,13 @@ class Tx_Flexslider_Controller_FlexSliderController extends Tx_Extbase_MVC_Contr
public function initializeAction()
{
$this->contentObject = $this->configurationManager->getContentObject();
// Fallback to current pid if no storagePid is defined
$configuration = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
if(empty($configuration['persistence']['storagePid'])){
$currentPid['persistence']['storagePid'] = $GLOBALS['TSFE']->id;
$this->configurationManager->setConfiguration(array_merge($configuration, $currentPid));
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment