Hallo!
Ich habe mir nun die Extension genauer angesehen. Das doppelte Einbinden liegt
daran, dass sowohl die FCE-Elemente (dann mit richtiger Darstellung) und die
darin enthaltenen Inhaltselemente (dann natürlich ohne entsprechender
Formatierung) ausgelesen werden.
Daher die doppelte Darstellung. Geht man davon aus, dass man nur FCE-Elemente
verwendet kann man den Code der Extension anpassen:
class.tx_srincludepages_pi1.php:
if( $recursivePageUid != $GLOBALS['TSFE']->id ) { // Avoid loop on the current page
$query = array(
'table' => 'tt_content',
'select.' => array(
'pidInList' => $recursivePageUid,
'orderBy' => 'sorting',
// 'where' => 'colPos = ' . $colPos . ' AND CType != "'.$this->extKey.'_pi1 "'.$this->cObj->enableFields('tt_content'), <--ersetzte Zeile
'where' => 'colPos = ' . $colPos . ' AND CType = "templavoila_pi1
"'.$this->cObj->enableFields('tt_content'), <--aktuelle Zeile
'languageField' => 'sys_language_uid'
)
);
Man könnte natürlich eine komplexere Abfrage bauen, da ich allerdings nur
FCE-Elemente benötige ist die Korrektur die einfachste.
LG, Daniela
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german