[Typo3] hide segment with realurl
Christopher
bedlamhotel at gmail.com
Thu Aug 18 00:49:04 CEST 2005
On 17/08/05, Jeff Segars <jsegars at alumni.rice.edu> wrote:
> > 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!
Fantastic. That un-fogs the manual a bit, thanks a million.
-Christopher
More information about the TYPO3-english
mailing list