[TYPO3-Solr] Dynamic solr link based on page TypoScript Configuration

Robert W rewebit at gmail.com
Mon Sep 29 08:24:03 CEST 2014


For building a dynamic link, I have been able to get the below to partially work. Currently, I do not see a way to get the dynamic PID for each articles passed to the userFunc.

In the userFunc there is a var_dump where I can see all the parameters. In the case of "stdWrap.append.data" the value comes out as a string (="field:pid"), the PID value is not replaced with the actual number of the article page. Could someone take a look and see what is missing? Thank you for your help.

plugin.tx_solr {
..
queue {
..
 url = TEXT
	url {

		// set this to the detail page for children
		typolink.parameter = TEXT
		typolink.parameter {
		                	
		                	// php method called, just not able to send in dynamich parameters
		                	stdWrap.append = USER
		                	stdWrap.append.data = field:pid
					stdWrap.append.includeLibs = typo3conf/ext/ams_lib/solr/class.user_SolrUrl.php
					stdWrap.append.userFunc = user_SolrUrl->build_url
		                }

		                typolink.additionalParams.insertData = 1
		                typolink.returnLast = url
		                typolink.useCacheHash = 1
		            }
..



More information about the TYPO3-project-solr mailing list