Domanda

The standard output of a tt_news list view hyperlink is like:

<a href="link-to-full-article" title="News Headline">News Headline</a>

How to remove the title tag from the standard output with typoscript ? So that you get:

<a href="link-to-full-article">News Headline</a>

I' am looking for a typoscript something like:

plugin.tt_news.displayList.linkParams.ATagParams >

Info: The template (sub)marker which includes the hyperlink is called:

<!-- ###LINK_ITEM### -->
   ... some Headline ...
<!-- ###LINK_ITEM### -->
È stato utile?

Soluzione 2

It's

plugin.tt_news.displayList.linkTitleField = 

However title will be there, it will not be filled.

If you want to remove the empty title part as well you need to dive into the plugin to remove it.

Altri suggerimenti

There is a hook for this.

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['getSingleViewLinkHook']

You will have to use it in an own extension.

Your hook consuming class will have to implement the following method

function processSingleViewLink(&$linkWrap, $url, &$params, &$pObj) {

  // modify $linkWrap to remove title="" using regex
  [...]

}

See here for reference how to consume hooks in TYPO3: http://typo3.org/documentation/article/how-to-use-existing-hooks-in-your-own-extension/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top