Zum Inhalt springen

Keine Ausgabe mehr nach Aufruf über Typoscript

Erstellt am 15. Februar 2013 · 3 Antworten · letzte Antwort am 23. Februar 2013

Tags: JavaScript & AJAX, Frage

trainerth ·

Hallo zusammen,

ich hoffe mir kann hier einer helfen oder mir einen Tipp geben.

Die Funtion list Action:

	public function listAction() {
		$photoss = $this->photosRepository->findAll();
		$this->view->assign('photoss', $photoss);

		return $this->view->render('list');
	}

Der Aufruf via Typoscript:

ajax_list = PAGE
ajax_list {
	typeNum = 995588
	config {
		disableAllHeaderCode = 1
		xhtml_cleaning = 0
		admPanel = 0
		debug = 0
		no_cache = 0
		additionalHeaders = Content-type:application/json
	}

    10 = USER
    10 {
		userFunc = tx_extbase_core_bootstrap->run
		extensionName = QdPhotoVoter
		pluginName = Pi1

		settings =< plugin.tx_qdphotovoter.settings
		persistence =< plugin.tx_qdphotovoter.persistence
		view =< plugin.tx_qdphotovoter.view
    }
}

Plugin Einstellungen:

plugin.tx_qdphotovoter {
	settings {
	}
	persistence {
		storagePid = {$plugin.tx_qdphotovoter.persistence.persistence} (pid=15)
	}
	view {
		templateRootPath = {$plugin.tx_qdphotovoter.view.templateRootPath}
		partialRootPath = {$plugin.tx_qdphotovoter.view.partialRootPath}
		layoutRootPath = {$plugin.tx_qdphotovoter.view.layoutRootPath}
	}
}

Wenn die Extension normal eingebunden ist, als Seiteninhalt, klappt die Listenansicht genau wie sie soll.
Ruft man nun aber die Seite mit dem type auf findet die ext. keine Datensätze mehr. Ich weiss nun wirklich nicht mehr weiter.
Mittlerweile habe ich alle Varianten der Einbindung über TS durch die ich im Internet finden konnte...

#angry#

Seid bedankt
Thorsten

trainerth ·

Hi,

Ja ist sie, über die Constants. Habe die Pid auch im Setup ausprobiert und auch ohne Vererbung im ajax_list schnippsel.

    10 = USER
    10 {
		userFunc = tx_extbase_core_bootstrap->run
		extensionName = QdPhotoVoter
		pluginName = Pi1
 
		settings =< plugin.tx_qdphotovoter.settings
		persistence{
storagePid = 15
}
		view =< plugin.tx_qdphotovoter.view
    }

Ändert alles nichts.
Wie gesagt, die normale Ausgabe klappt wie gewünscht, nur über den type einfach nicht.

Thorsten

kainobi ·

Hm, dann mach mal folgendes:
Geh in die Datei extbase/Classes/Persistence/Storage/Typo3DbBackend.php und lass dir in der Methode getObjectCountByQuery() und getObjectDataByQuery() die fertig gebaute SQL-Query ausgeben. Evt. hilft das weiter...