[TYPO3-mvc] Advanced configuration for RealUrl with Extbase

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Jun 17 12:21:59 CEST 2010


Hey Thomas,

On 17.06.2010 12:05, Thomas "Thasmo" Deinhamer wrote:
>> no, not necessarily. Have a look at "fixedPostVars" in realUrl. If you
>> know the piVars structure for certain pages, you can strip the keywords
>> "category" and "product" in the URL. But that only works if you have a
>> fixed number of postVars and might not easily work with a "unlimited"
>> number of categories AFAIK.
...
> Uh, thanks a lot - that looks like a useful help,
> unfortunately I don't understand the last few bits.
> Or at least I have no clue how to get started on it.
>
> Basically I'd be glad with just something like:
> host/page/a-category/
> host/page/a-category/a-product/

you can achieve that via the mentioned "fixePostVars" - just have a look 
at the realurl documentation

> But then I lose the 'path', which is needed for rendering the correct
> breadcrumbs/rootline and the shop-navigation etc.
>
> So, a solution which puts the full category-path
> into the URI would be really cool.

Sure, but it is difficult without indication segments like "category" in 
the URL - as you don't know which path segment belongs to the categories 
etc. That's why I wrote that maybe adding a special character to the 
category path could ease things up.

> Still I'm not sure about the path segment
> "a-category+another-category+yet-another-category" and post-processing
> to add slashes.

realurl has hooks to manipulate the final URL, as well as pre-process 
incoming URLs. That way you can beautify/manipulate URLs up to a certain 
degree.

> I think I need to dig into RealUrl itself a bit deeper
> to get a feeling for what's possible and for what I need
> custom hooks/functions.

That's always good :)

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list