[TYPO3-mvc] Advanced configuration for RealUrl with Extbase

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Thu Jun 17 12:05:10 CEST 2010


> 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.
>
>> But this imho is quite long and I'm still not sure if it's possible to
>> convert "tx_hypestore_category[path]=4,2" to
>> "/a-category/a-category-in-another-category/"?!
>
> AFAIK it's not easily possible. Altough you could create such a URI
> using a custom function you can assing to realURL paths, but it will be
> hard to decode it (extract the original GETvars) without a keyword like
> "category" in the URL that's telling you when to stop parsing for
> categories. One possibility might be to add a special concatenation sign
> to the URLs in the path and use pre- and postprocessing hooks to make
> them look nicer.
>
> Like:
> host/page/a-category+/another-category+/yet-another-category/a-product/
>
> So your custom function would create a category path segment like this:
> a-category+another-category+yet-another-category
>
> and via post processing you add additional slashes. You could also
> completely remove the "+" sign and only use slashes, but in that case
> you might need to use a own cache table to be able to decode that stuff.
>
> You might say now - why do I need my own cache when realURL has a encode
> and decode cache. Well - those can be empty and then you need still a
> way to decode the URL.

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/

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.

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

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.

Thanks a lot so far,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list