I wanted to have child elements (tl_content) show up on the page of the parent. Quite similar to the demo portfolio but with the page showing both content from parent cc_portfolio and child tl_content.
With the help from support I found a solution for this issue. Here is the solution:
The reader reacts either to the detail entry url or to a tl_content table plus a pid get parameter. See the difference in the url !!
To render ( in a regular detail page ) the content of the connected tl_content entries you need more logic in the template.
You can use something like this in the reader template (create a new customcatalog_default Template)
This worked for me in a test environment.
With the help from support I found a solution for this issue. Here is the solution:
The reader reacts either to the detail entry url or to a tl_content table plus a pid get parameter. See the difference in the url !!
To render ( in a regular detail page ) the content of the connected tl_content entries you need more logic in the template.
You can use something like this in the reader template (create a new customcatalog_default Template)
PHP-Code:
<?php
$objCC = $this->getCustomCatalog();
$objContentEntries = $objCC->fetchPublishedContentElementsById( $this->entries[0]->id );
echo $objCC->renderContentElements($objContentEntries);
?>
Kommentar