[TYPO3-mvc] link viewhelper and linkVars

Stephan Helten stephan.helten at engage.de
Mon Aug 29 11:35:19 CEST 2011


Hi,

I've done some debugging: the typolink function removes the contrast
parameter as it should, but it is appended afterwards because of linkVars.

I found a solution for my problem:

Fluid:
<li><f:link.page id="ContrastNormal" additionalParams="{contrast:
'default'}">normal</f:link.page></li>

Typoscript:
[globalVar = GP:contrast=default]
config.linkVars := removeFromList(contrast)
[end]

Regards

Stephan

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Stephan Helten
Gesendet: Montag, 29. August 2011 10:46
An: 'TYPO3 v4 MVC project'
Betreff: [TYPO3-mvc] link viewhelper and linkVars

Hi,

 

I have this fluid code:

<ul>

      <li><f:link.page id="ContrastHigh" additionalParams="{contrast:
'high'}">high</f:link.page></li>

      <li><f:link.page id="ContrastNormal" addQueryString="true"
argumentsToBeExcludedFromQueryString="{bla:
'contrast'}">normal</f:link.page></li>

</ul>

 

And this typoscript:

config.linkVars := addToList(contrast)

 

When clicking the first link the parameter contrast=high is appended to
every url (what is right), but when clicking the second link after the
first, the "contrast=high" parameter gets _not_ removed from the link.

Can I force the exclusion of this parameters in any other ways?

 

regards

 

Stephan

_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list