[TYPO3-english] Filtering tt_news with POST params [SOLVED]
Iban
cardona at opus5.info
Tue Apr 8 16:00:04 CEST 2014
Hello,
I solved the issue with these classes
|ext_localconf.php:||
||
||if (TYPO3_MODE == 'FE') {||
||require_once('hooksclass.php');||
||}||
||
||//registering for hook||
||$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] =
'hooksclass';||
||$TYPO3_CONF_VARS['EXTCONF']['tt_news']['selectConfHook'][] =
'hooksclass';||
||$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraGlobalMarkerHook'][] =
'hooksclass';||
||
||hooksclass.php||
||
|| /**||
|| * connects into tt_news and adds the field to the marker||
|| * and fills our markers||
|| *||
|| * @param array an array of markers coming from tt_news||
|| * @param array the current tt_news record||
|| * @param array the configuration coming from tt_news||
|| * @param object the parent object calling this method||
|| * @return array processed marker array||
|| */||
|| function extraItemMarkerProcessor($markerArray, $row, $lConf,
&$pObj) {||
|| //YOURCODE||
||||
|| return $markerArray; ||
|| }||
||
/**
* Manage select before show list
*/
||||public function processSelectConfHook(&$parentObject, $selectConf) {||
|| //YOURCODE ||
||||
|| return $selectConf;||
|| }||
||
|| /**||
|| * this function is called by the Hook in the function
extraGlobalMarkerProcessor() from class.tx_ttnews.php||
|| *||
|| * @param object $pObj: reference to the parent object||
|| * @param array $markerArray: the markerArray from the
tt_news class||
|| * @return array $markerArray: the processed markerArray||
|| */||
|| public function extraGlobalMarkerProcessor(&$pObj, $markerArray) {||
|| //YOURCODE||
||
|| return $markerArray;||
|| }|
El 07/04/2014 9:28, Iban escribió:
> Hello,
>
> I would like to insert tt_news plugin in a page using "Latest View
> (LATEST)" view but filtering news by params in the POST.
>
> Any suggestion?
>
> Best regards,
> Iban.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
--
*Iban Cardona
opus5 · inteligencia online, soluciones internet.
*ronda sant antoni 51, 1o 2a, E-08011 barcelona
tel: +34 93 289 07 30 fax: + 34 93 289 07 29
email: cardona at opus5.info <mailto:cardona at opus5.info> ·url:
www.opus5.info <http://www.opus5.info>
More information about the TYPO3-english
mailing list