Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.
How is the page id defined for the detail view?
The page ID of the detail view is defined in two settings:
{settings.detail.defaultPid}
- Defined in TypoScript and represents the default page with single view
- Defined in the
themes.configuration.pages.openimmo.detail
TypoScript constant
{settings.detailViewPid}
- Comes out of the FlexForm of the relevant Plugins (Teaser + Immobilie Plugin), see documentation https://www.coding.ms/documentation/typo3-openimmo/plugins/creating-a-real-estate-teaser + https://www.coding.ms/documentation/typo3-openimmo/plugins/setting-up-an-advanced-property-search
- If set, the default page for the single view is overwritten with this value (see previous setting above)
- This variable should NOT be used in templates. It should also not be set in TypoScript. You will not find detailViewPid if you search for it in the Fluid templates. The variable is processed by the controller, if it is set.
The controller processes these 2 settings using the following logic:
- In
teaserAction
+searchAction
- the single view ID is checked before being processed by the Fluid templates By default{settings.detail.defaultPid}
is used, unless:- If
{settings.detailViewPid}
is set in the plugin Flexform, then it will use this page (-->settings.detail.defaultPid = settings.detailViewPid
)
- If
- Finally, the variable is checked to see if it has a valid ID
>0
, if not the current page ID is used
Resulting definition: If your link displays the same page it means the ID is missing from one of the settings, or the ID is an invalid number.