[Typo3] hide segment with realurl
Jeff Segars
jsegars at alumni.rice.edu
Thu Aug 18 00:41:21 CEST 2005
> How about a taste of the solution? :-)
Let's say you have a page named archive with id=45. Using postVarSets
the RealURL configuration may have been something like...
'postVarSets' => array(
'_DEFAULT' => array (
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]',
),
array(
'GETvar' => 'tx_ttnews[month]',
),
),
...
)
)
This would yield URLs like www.mysite.com/archive/archive/2005/08/.
To use fixedPostVars you'd need to remove archive from the postVarSets
array and into the fixedPostVars array...
'fixedPostVars' => array(
'45' => array(
array(
'GETvar' => 'tx_ttnews[year]',
),
array(
'GETvar' => 'tx_ttnews[month]',
),
),
...
)
This would yield URLs like www.mysite.com/archive/2005/08/. The
downside is its you have to know ahead of time what plugin will be on a
specific page, but it does remove the duplication.
Hope that helps!
Jeff
More information about the TYPO3-english
mailing list