Custom TPL bei Content Seiten

Hallo liebe Community,

OK muss ich nochmal bearbeiten die frage :slight_smile:

Per ajax möchte ich gerne die AGB’s oder Versandkosten in ein Popup laden.

Leider funktioniert

blbla/Versandkosten/?cl=tpl&tpl=ajaxcontent.tpl

nicht.

Er spuckt mir einfach nicht die Content Variablen raus sondern gibt huat mich auf die startseite.

Gibt es nicht die möglichkeit durch ein Modul bzw. class parent das ich 2 unter schiedliche Content seiten generieren könnte.

Wenn ich die content Classe überschreibe funktioniert mein gewünschter aufruf. Nur leider gehen da auch nicht mehr die normalen content seiten.

Meine Meta

/**

  • Metadata version
    */
    $sMetadataVersion = ‘1.1’;

/**

  • Module information
    /
    $aModule = array(
    ‘id’ => ‘cfmodul’,
    ‘title’ => ‘Modul für das Template’,
    ‘description’ => array(
    ‘de’ => ‘Modul für das Template’,
    ‘en’ => ‘Modul for this Template.’,
    ),
    ‘thumbnail’ => ‘’,
    ‘version’ => ‘1.0.0’,
    ‘author’ => ‘xxx’,
    ‘url’ => ‘’,
    ‘email’ => ‘xxx’,
    /
    ‘extend’ => array(
    ‘oxERPType’ => ‘theme/core/ajaxcontent’
    ),*/
    ‘files’ => array(
    //‘ajaxcontentClass’ => ‘theme/core/ajaxcontent.php’,
    ‘ajaxcontent’ => ‘theme/views/ajaxcontent.php’
    )
    );

meine ajaxcontent.php

class ajaxcontent extends oxUBase
{
/**
* Current class template name.
* @var string
*/
protected $_sThisTemplate = ‘custom/ajax_content.tpl’;

/**
 * Current view search engine indexing state
 *
 * @var int
 */
protected $_iViewIndexState = VIEW_INDEXSTATE_NOINDEXNOFOLLOW;

public function init()
{
    parent::init();

    $myConfig = $this->getConfig();
}

public function render()
{
    parent::render();
    $oSmarty = oxUtilsView::getInstance()->getSmarty();
    $oSmarty->assign( "oViewConf", $this->_aViewData["oViewConf"]);
	$oSmarty->assign( "oView", $this); 
    $oSmarty->assign( "shop", $this->_aViewData["shop"]);
    echo $oSmarty->fetch("custom/ajax_content.tpl");
    oxUtils::getInstance()->showMessageAndExit( "" );
}

// zahlreiche weitere neue Funktionen bereits implementiert, die auch angesprochen werden können
}

Ich habe auch nicht ein richtiges tutorial gefunden für eigene view classen

Vielleicht könnt ihr mir helfen.

uff ich habe es

blablabla/impressum/?plain=1

oje oje

und ich probiere module

mfg Basti