[TYPO3-english] Want to call core function typoLink() in my own php script to create realurl page links

Peter Russ peter.russ at 4many.net
Tue Dec 21 07:18:26 CET 2010


--- Original Nachricht ---
Absender:   mohammad.farooq at steria.co.in
Datum:       21.12.2010 06:40:
> Hello TYPO3 People,
> 
> To create a really different menu, I am using my own php script, which
> featches database conetent from "pages" table and creates a good menu with
> url links  to id of that  page.
> Now that RealURL is in place, on typoscript genereated menu it is creating
> fine links. but on my phpscript created menu, it is still showing the same
> id=pageid;
> I can create realurl links using table joins etc easily, but I want to
> create links using typolink('Page Title','url parameters'); like we do when
> creating extension.
> 
> Thing is that I can't access this typoLink() function from my stand alone
> code which is not inside ext directory,
> typolink function resides in
> "typo3/sysext/cms/tslib/class.tslib_content.php", how to include and call
> this function.
> Can someone please tell me how can I call a typo3 core function from my own
> php code, (plz. don't tell me it is a security risk to have php code in
> fileadmin that I already know).

Check piBase. This shows how a cObj is initiated.
BUT you create a lot of overhead for something you would get for free 
when you would create a TYPO3 extension.

Peter.

-- 
docendo discimus

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list