[TYPO3-core] Patch: simulateStaticDocuments and SEO

Dmitry Dulepov dima at spamcop.net
Wed Jan 18 10:01:45 CET 2006


Hi!

Michael Stucki wrote:
>>Solution: make this character configurable. A new option added
>>(config.simulateStaticDocuments_prefixChar) with default value of
>>underscope. If this value is set and it equals to its urlencode(), than it
>>is used as prefix separator character.
>>
>>This patch also converts ereg_replace to preg_replace in the function
>>responsible for handling simulateStatic file names.
> 
> This is not a "prefixChar" as the name says. What about using
> "replacementChar" instead?

Yes, I had a "replacementChar" in the initial version but later changed
it to "prefixChar". This character appears in the url text and this text
is called "prefix" in the code (it is a prefix for ID part of URL). Thus
I ended up with "prefixChar". Not the best name but consistent.

I am not truly like "prefixChar" too. So what should I do? Change it to
"replacementChar"?

>>FAQ:
>>Q. Will it change existing URLs?
>>A. No, unless you explicitely specify this character and set it to
>>something else then underscope. No existing installations are affected by
>>this patch.
> 
> Fine although it wouldn't hurt as the page title is completely ignored in
> those URLs. But I agree with Bernhard suggestion to change the default
> depending on the compat_version.

Keeping underscope by default will let us avoid questions about sudden
change of URLs. But the idea about upgrade wizard is really cool. I
already asked Sebastian about details and will post new version of the
patch as soon as I can. Hopefully, today evening.

Dmitry.



More information about the TYPO3-team-core mailing list