[TYPO3] printversion error in IE
Bas van der Togt
b.vandertogt at profinit.com
Wed May 24 14:47:52 CEST 2006
Thanks Joey!
Now i'm getting the folowing error: Error. Reason: Segment "print" was
not a keyword for a postVarSet as expected!
Must be something wrong with my RealURL config but i can't find anything...
This is my RealURL code:
<?php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache']
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache']
= 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'nl' => '0',
'nl' => '0',
'en' => '1',
'en' => '1',
'de' => '2',
'de' => '2',
),
'valueDefault' => 'nl',
), ),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 1,
),
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
// news archive parameters
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]' ,
),
array(
'GETvar' => 'tx_ttnews[month]' ,
'valueMap' => array(
'january' => '01',
'february' => '02',
'march' => '03',
'april' => '04',
'may' => '05',
'june' => '06',
'july' => '07',
'august' => '08',
'september' => '09',
'october' => '10',
'november' => '11',
'december' => '12',
)
),
),
// news pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
// news categories
'select_category' => array (
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
// news articles and searchwords
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => false,
'index' => array(
'rss' => array(
'keyValues' => array(
'type' => 100,
),
),
'rss091' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf' => array(
'keyValues' => array(
'type' => 102,
),
),
'print' => array(
'keyValues' => array(
'type' => 98,
),
),
),
),
),
);
?>
JoH schreef:
>>I'm using the code below it's working in Firefox but i get an error in
>>IE (Error. Reason: File "index.php" was not found). does anybody know
>>how to solve this? I'm using REALURL by the way.
>>
>># Print
>>temp.Print = COA
>>temp.Print {
>> wrap = <td align="right" width="100%" class="buttonheading"><a
>>href="#" onclick='window.open("index.php|", "print",
>>"width=800,height=600,left=0,top=0,scrollbars=yes,menubar=yes,
>>resizable=1");'><img src="fileadmin/templates/images/printButton.png"
>>alt="Afdrukken" align="middle" name="Afdrukken" border="0"
>>/></a></td></tr></table>
>> 1 = TEXT
>> 1.data = field:uid
>> 1.wrap = ?id=|&type=98
>> 2 = TEXT
>> 2.data = GPvar:tx_ttnews|tt_news
>> 2.wrap = &tx_ttnews[tt_news]=|
>>}
>>
>>Your help would be great!
>
>
> You should do that with IMAGE and typolink.
>
> temp.Print = IMAGE
> temp.Print {
> wrap = <td align="right" width="100%"
> class="buttonheading">|</td></tr></table>
> file = fileadmin/templates/images/printButton.png
> altText = Afdrucken
> imageLinkWrap = 1
> imageLinkWrap {
> enable = 1
> typolink.parameter {
> data = TSFE:id
> wrap = |,98 800x600:scrollbar=1,menubar=1,resizable=1 -
> afdrucken
> additionalParams.data = GPvar:tx_ttnews|tt_news
> additionalParams.wrap = &tx_ttnews[tt_news]=|
> }
> }
> }
>
> The wrap of the typolink is split into 4 parts
> link target class title
>
> Here it will be
>
> link => 123,98
> target => 800x600:scrollbar=1,menubar=1,resizable=1
> class => -
> title => afdrucken
>
> This way you will get the link to page 123 with type 98 in a popup window,
> where the link itself has no class but the title afdrucken.
>
> Have a look at TSref for the rest of the typolink syntax.
> http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/8/
>
> Joey
>
More information about the TYPO3-english
mailing list