[Typo3] title param in a A-tag

Christopher bedlamhotel at gmail.com
Sat Nov 12 19:51:57 CET 2005


Ah.

On 12/11/05, Pierre Rouwens <prouwens at infoglobe.ca> wrote:
> Hi Christopher,
>
> Mmmmmit doesn't work here :
> <a href="index.php?id=3" title="title">
>
> i wanna have the title of the page maybe i wasn't so clear about that :)
>

This behaviour has been reported as a bug [1], [2].

Depending on the circumstances, thie following workaround may help
(because it uses typolink to generate the url, the link will be
compatible with simulateStaticDocuments, RealURL etc...):

temp.linkWithTitle = COA
temp.linkWithTitle {
  # Start the tag:
  5 = HTML
  5.value = <a

  # Build the 'href' attribute:
  10 = HTML
  10 {
    value {
      typolink {
        parameter = uid
        returnLast = url
      }
      noTrimWrap = | href="|"|
    }
  }

  # Build the 'title' attribute and finish the opening tag:
  15 = HTML
  15 {
     value {
        field = title
        noTrimWrap = | title="|">|
     }
  }

  # Add the link text and the closing tag:
  20 = HTML
  20 {
    value {
      field = title
      wrap = |</a>
    }
  }
}


-Christopher


[1] http://bugs.typo3.org/view.php?id=1660
[2] http://bugs.typo3.org/view.php?id=1749



More information about the TYPO3-english mailing list