[Typo3-dev] simulateStaticDocuments
"Kasper Skårhøj"
kasper at typo3.com
Mon Jan 26 19:25:51 CET 2004
Hi Martin.
This mail is covered by the next.
God bless
- kasper
*********** REPLY SEPARATOR ***********
On 17-04-2003 at 12:39 Martin Poelstra wrote:
>Hi again, especially Kasper,
>
>Another mail about the Speaking URL thing...
>
>To implement Speaking URLs, I extended tslib_fe->makeSimulFileName, so
>Typo can
>generate URLs like /Products/Product1/Features/
>I had to set simulateStaticDocuments to 1, so makeSimulFileName is called
>every
>time a link has to be generated. It works, but there's a little problem: I
>HAVE
>to return some kind of filename, without the extension. So I can't
>possibly
>build an URL like above, it always has to end in /index or something
>(without .html...).
>
>Why? Because other functions (t3lib_TSTtemplate->linkData, tslib_frameset-
>>frameParams, tslib_fe->getSimulFileName) check for themselves whether
>they
>have to append '.html' to it (if simulateStaticDocuments=="1"), or
>str_replace
>('.','/',$filename) and prepend with "/index.php/" (if
>simulateStaticDocuments=="PATH_INFO").
>
>I think it would be very nice to have makeSimulFileName build the COMPLETE
>filename, so it just returns Page.12.0.html, /index.php/Page/12/0/
>or /Products/Product1/Features/, according to the value of
>simulateStaticDocuments. Another, much less elegant solution would be to
>include another 'if (simulateStaticDocuments == "2")' or something in the
>above
>mentioned functions.
>
>After looking at the code, it seems that the first solution shouldn't be
>too
>hard to implement. It would be very great if this could also be
>incorporated in
>the main source distro. If needed, I'll try to patch the source myself and
>send
>you a diff...
>
>Grtz, Martin
>
>
>_______________________________________________
>Typo3-dev mailing list
>Typo3-dev at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
God bless
- kasper
- kasper
--------------------- o ---------------------
"Mange kokke fordærver maden."
"En fugl i hånden er bedre end ti på taget."
More information about the TYPO3-dev
mailing list