[TYPO3-dev] caching of pages with more than id and type params (with or without cHash)
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Sun Mar 5 18:38:02 CET 2006
Martin Ficzel schrieb:
>
> Problem: there is just the typolink function in the api not a
> function wich is returnig only the "src" string. i would have to use
> typolink and extract the "src" string afterwards(not very elegant!).
Not true. There is an API for PHP and a TS optoin for a typolink that
will return the URL (and not the whole a-tag).
> i would prefer something like a "typolinkSrc" function. but i dindn't
> find it in the api.
You didn't study the API good enough. For PHP see tslib_content and
tslib_pibase, for typolink see TSref.
> 2. configure typo3 in a way that the parameters "feature" and "level"
> are also taken into account for caching.
>
> Problem: i dont find a way to do it.
Make it tx_myext_pi1[feature] and tx_myext_pi1[level]. I'm not quite
sure if the cHash takes them into account without that change. If you
don't like that you can build your own cHash-Argument. The necessary
function is in t3lib_div.
Masi
More information about the TYPO3-dev
mailing list