[TYPO3-dev] getting the correct path to a page in the backend
Dennis Cheung
hkdennis2k at gmail.com
Fri Jan 6 12:49:07 CET 2006
Hi Robert,
I just have the same question today.
I already has research on all tslib and t3lib. That is an missing feature.
I was hope somewhere can bypass the framework, steal an FE function to do it.
But, after I search all the source code, none of them are useful.
Everything(included realurl) do directly depend on $TSFE, and TSTemplate.
(It need parsed config of template of the "current page". and you do
not have a "current page" in BE)
You have a few choice,
a.) init a complete FE environment in backend.
b.) study realurl's code, and write a copy of the logic without FE.
c.) read realurl's cache/mapping from database(only if that link
has been encoded)
d.) using typoscript template default a page type only has a link to itself.
an download it by fopen / file.
These are the idea I have, but I am already give up.
Dennis
On 1/6/06, Robert John de Stigter <robertjohn at bedrijvenweb.nl> wrote:
> Hi all,
>
> In my scripts I use t3lib_TStemplate::linkData to get te correct url's
> to my pages. I use real url. This works fine for the frontend, but in
> the backend the function returns index.php?id=[id] instead of the real
> url path. What method should I use to get the correct path to a page?
>
> Cheers Robert
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list