[TYPO3-dev] How to make a print link with piVars?

Christopher Torgalson bedlamhotel at gmail.com
Tue Apr 24 19:17:45 CEST 2007


Hi,

On 4/24/07, Brian Bendtsen <"bb[FJERN]"@bellevuevej.dk> wrote:
> Rudy Gnodde skrev:
> > Hello Brian,
> >
> > Take a look at typolink:
> > http://typo3.org/documentation/document-library/references/doc_core_tsre
> > f/4.0.0/view/5/8/
>
> Im trying to insert an image and make it a link.
>
> Im trying this:
>
> #quicklinks
> lib.printURL = IMAGE
> lib.printURL.file = fileadmin/templates/gfx/toolbar_icons/udskriv.gif
> lib.printURL.typolink {
> parameter = {page:uid}
> additionalParams = &print=1
> ATagBeforeWrap = 1
> }
>
> but no link is created.


This is because your TS makes no sense. If you check the TSref, the
IMAGE cObject has no such property as 'typolink'. It /does/ have a
property called 'stdWrap' which can access the typolink function.

TS becomes much more transparent once you understand that the
information contained in the "Data type" column is actually very
iportant (not criticizing: I think I'd already been using TYPO3 for a
year or more before I started to /really/ understand that the data
type actually mattered...)

If you want to read more about the subject, try
http://typo3apprentice.com/howto/rtfm/ (the second page also
specifically discusses linking images with TS).

-- 
Christopher Torgalson
http://www.typo3apprentice.com/




More information about the TYPO3-dev mailing list