[TYPO3] additional parans in typolink...
Andrew Davis
andrew at avagraphique.com
Tue Apr 17 03:31:05 CEST 2007
i guess its obvious i dont fully understand ts if im posting
questions... thanks for the suggestions. i checked out your site, which
im sure will be helpful.
you say about my solution -- "it's a bit ugly". Do you have a better
suggestion about how I might do this? Im not married to this. I tried
using the tipafriend extension but I had difficulty in implementing it
thru only typosecript (i had to place it as a content item on a page in
the BE).
>
> You ARE missing something: the datatype of additional params--it's
> /string/ NOT stdWrap (which it would have to be in order for what
> you've tried to work).
>
> The way to do what you're trying is to use typolink to retrieve ONLY
> the url, and to add your parameters to it afterwards--it's a bit ugly,
> but it will work:
>
> temp.tip = COA
> temp.tip {
> # Build the opening a tag:
> 5 = COA
> 5 {
> wrap = |<a href="|">|
>
> # Start the link:
> 5 = TEXT
> 5 {
> typolink {
> parameter = 36
> returnLast = url
> }
> }
>
> # Get the next parameter:
> 10 = TEXT
> 10 {
> dataWrap = &tipUrl={getIndpEnv:TYPO3_REQUEST_URL}
> }
> }
>
> # Write the link text and close the tag:
> 10 = TEXT
> 10 {
> value = Email a friend
> wrap = |</a>
> }
> }
>
> If you don't understand datatypes in the TSref, you may want to read
> my short article about using the TSref:
> http://typo3apprentice.com/howto/rtfm/
>
More information about the TYPO3-english
mailing list