[TYPO3-dev] Re: Load dynamic valueMap from db model in RealURL
Olle Haerstedt
o.haerstedt at bitmotion.de
Mon Nov 24 17:37:06 CET 2014
Quote: Olle Haerstedt (ollehar) wrote on Mon, 24 November 2014 17:07
----------------------------------------------------
> Hi!
>
> I have a URL like localhost/show/product/2
> where "2" should be replaced by the product name. Statically this can be done
> by a valueMap, but can it be done dynamically, e.g. with postVarSets type 'user'?
>
> Grateful for your help
> Olle
----------------------------------------------------
Problem kind of solved with fixedPostVars:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars'] = array(
'productTitle' => array(
array(
'GETvar' => 'tx_myext_pi1[products]',
'lookUpTable' => array(
'table' => 'tx_myext_domain_model_products',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => 'AND NOT deleted AND NOT hidden',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
),
)
),
// Id of products plugin page
'4' => 'productTitle'
);
More information about the TYPO3-dev
mailing list