[TYPO3] typolink and if.isTrue condition problem.

JoH asenau info at cybercraft.de
Mon Oct 6 10:31:52 CEST 2008


Cray Flatline wrote:
> I have such construction:
> lib.typesmenu = COA
> lib.typesmenu.wrap = <ul id="storetypesmenu">|</ul>
> lib.typesmenu {
>  10 = IMAGE
>  10.wrap = <li>|</li>
>  10 {
>    file = fileadmin/originalwatches/global/img/stroup-male-btn.gif
>    stdWrap.typolink.if.isTrue.data = GPvar:tx_commerce_pi1|catUid
                                 ^^^^
There is no typolink.if not even typolink.stdWrap.if available.
Look at TSref to find out, which parameters you can use together with
typolink.
BTW: This is what you always should do if something doesn't work as
expected: Checkout TSref if the specific TypoScript parameter you have been
using exists.

>    stdWrap.typolink {
>     parameter = 59
>     additionalParams = &tx_commerce_pi1[gender]=1
>     addQueryString = 1
>    }
>  }
>
> I want to make menu, where where is link on the gif button if
> tx_commerce_pi1[catUid] exist in the URL, and just image without link,
> if where is no tx_commerce_pi1[catUid].

You could try
parameter.if.isTrue.data = GPvar:tx_commerce_pi1|catUid
instead, because this will empty the parameter, if there is no catUid
available.
With an empty parameter string typolink will generate no link at all and I
guess that's what you wanted.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com




More information about the TYPO3-english mailing list