[TYPO3-english] printlink for multilanguage

Rupali Gupta rupali.ffm at googlemail.com
Wed Oct 22 18:12:39 CEST 2008


need help again, i corrected the code so far i get it, following code adds
GET parameter print, opens in new window. ok.

lib.drucken = TEXT
lib.drucken {
  value = Drucken
  typolink {
    // Get the id of the current page:
    parameter {
      data = page:uid
    }
    // Add whatever is in the query string:
    addQueryString = 1
    addQueryString {
      // Account for the fact that RealURL etc
      // may have manipulated the query string:
      method = GET
    }
    // Add the 'print' parameter:
    additionalParams = &print=1
    // Do not cache the print version:
    no_cache = 1
  }
}
[globalVar = GP:L=1]
    lib.drucken.value=Print
[global]

i have also linked print.css in headerData and set my styles there.:

headerData.40 = TEXT
    headerData.40.value (
     <link href="fileadmin/templates/print.css" rel="stylesheet"
type="text/css" media = "screen" />
     )

now how both get connected to each-other?


2008/10/15 Xavier Perseguers <typo3 at perseguers.ch>

> Hi,
>
> > In other words, the difference between the 'regular' and 'printable'
> > pages is that in the regular page, you have a set of calls to
> > stylesheets like this:
> >
> >     <link rel="stylesheet" type="text/css" href="path/to/screen.css"
> > media="screen" />
> >     <link rel="stylesheet" type="text/css" href="path/to/print.css"
> > media="print" />
> >
> > ...but in the printable page you have only this stylesheet reference:
> >
> >     <link rel="stylesheet" type="text/css" href="path/to/print.css"
> > media="screen" />
>
> I agree and I cannot understand why people keep generating different
> pages for printing where CSS can do this automatically for you.
>
> --
> Xavier Perseguers
> http://xavier.perseguers.ch/en/tutorials/typo3.html
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



-- 
Regards,
Rupali


More information about the TYPO3-english mailing list