[TYPO3-core] RFC: #4911: No function for adding alternative external URL for other languages

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Nov 25 12:03:53 CET 2007


Benjamin Mack schrieb:
> Hey all,
> 
> this is a SVN patch request.
> 
> Branches: Trunk only
> 
> BT Reference: http://bugs.typo3.org/view.php?id=4911
> 
> Description:
> There is no way to add a corresponding external URL in another language 
> when using the one tree model and choosing page type: external URL.
> 
> There is no facility to create an alternative external URL on the 
> default page or in the alternative language record.
> 
> Typo3 only allows one URL in the default language.
> 
> 
> Solution:
> Add the needed fields to the DB and the TCA.
> 
> 
> Notes:
> * I created a patch in response to that issue as I noticed this problem 
> as well. It works quite well for me. It also is compatible with existing 
> solutions as it takes the URL field of the pages_language_overlay first 
> and if that is empty it takes the original URL.

It works like that? I made a similar patch and it was necessary for me 
to do the mergeIfNotBlank feature manually. The page records are simpley 
merged so any empty value in the overlay record will end up in the final 
record.

But I have to admit that I didn't test your patch.

> * The only issue I have right now is that the three added fields are 
> shown with every page type in the Backend. The fields are not used when 
> the pagetype is something else than 4 (External URL) but it's not nice. 

It's the same for all other fields :-( page_language_overlay should 
inherit the type from it's parent record.

Anyway, one issue and a quesiton.

Issue: Your patch omits https as possible protocol.

Quesition: What are those two conf.php files you change? No patch of 
config_default.php that I have seen so far was ever reflected there.

Masi


More information about the TYPO3-team-core mailing list