[TYPO3-english] exclude certain page from realurl path

Jigal van Hemert jigal.van.hemert at typo3.org
Thu Aug 23 11:43:15 CEST 2012


Hi,

On 23-8-2012 9:46, Muriel le Pair wrote:
> It's a pitty it's not possible. I need to come up with another solution.

Usually a real url for a detail view page looks like:
/path/to/singleview/postvarKey/record-title

You want it to be:
/path/to/postvarKey/record-title

If you use fixedPostVars then there is no postvarKey prefix. You can 
define these for specific page ids.
That way it would be:
/path/to/singleview/record-title

With the right choice of page titles you can achieve what you're looking 
for.
The only thing you have to look out for is that if you have a postvarKey 
in your realUrl configuration which is the same as the page title of the 
singleview page you can get into trouble. Either don't have a normal 
postvar definition for that extension in realurlconf or use a slightly 
different name. E.g. if the postvar prefix for news is 'newsitem' 
(/path/to/singleview/newsitem/record-title.html) then you could use 
'news' as the page title of the single view page and have a 
fixedpostvars definition for that page. The result is 
/path/to/news/record-title.html .

-- 
Jigal van Hemert
TYPO3 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list