--- Original Nachricht ---
Absender:   Martin Bless
Datum:       02.04.2010 00:58:
[Peter Russ] wrote & schrieb:

[Martin Bless] Wishful thinking ...
An option would be great that tells simulateStaticDocuments to always
use numbers on creation of links while still accepting aliases on
receiving.


Switching to realurl or cooluri ist not an option.
Check the appropriate pages and do a permanent redirect to the new ones. Google will accept that whithout loosing page rank.

Ok, that's an option. But not really, since there are ca. 1.300 pages
with aliases.

Meanwhile I've looked into the code. It seems that only a single line
has to be changed to make my dream come true:
$url = $this->makeSimulatedFileName(
        $page['title'],
        ($page['alias'] ? $page['alias'] : $page['uid']), // gotcha!
        intval($parameters['typeNum']),
        $LD['linkVars'],
        ($LD['no_cache'] ? true : false)
);

I did a quick test. If I change it to ($page['alias'] ? $page['uid'] : $page['uid']), // gotcha!

the alias isn't used any more for link generation. But it's still
accepted when received.
Maybe I'll do some further testing and invent an option like
$this->conf['simulateStaticDocuments_noAliases'] and prepare a patch.

If you do rewrite correctly (i.e. there is a rule how the link is composed; you can use that to split into the compents), then you would only need a few line of rewrite. That's better than hacking the code or XCLASSing.

Peter.

--
docendo discimus

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to