---
title: "tt_news hyperlink in con ajaxscroller with realurl ?"
url: "https://www.typo3.net/d/104828-tt-news-hyperlink-in-con-ajaxscroller-with-realurl"
source: "typo3.net"
tags: ["Extensions","English","Frage","Links","tt_news"]
created: "2011-04-08"
last_reply: "2011-04-08"
replies: 1
solved: false
page: 1
pages: 1
lang: "en"
---

# tt_news hyperlink in con ajaxscroller with realurl ?

Extensions · 1 Antwort · gestartet 2011-04-08

## Eröffnungsbeitrag

**denba** · 2011-04-08 · [Beitrag #1](https://www.typo3.net/d/104828-tt-news-hyperlink-in-con-ajaxscroller-with-realurl/1)

I installed and latest version of con_ajaxscroller and I'm facing some trouble with the definition of the hyperlink applied on the text.

My goal is to use tt_news contents to populate the scroller. The title of my records are displayed as expected but unfortunately I'm not able to get the hyperlink working.

My setup script is the following:

plugin.tx_conajaxscroller_pi1.scrollerContent >

plugin.tx_conajaxscroller_pi1 {
  templateFile = EXT:con_ajaxscroller/static/tt_news/ajaxscroller.html

scrollerContent = CUSTOM
  scrollerContent {
    table = tt_news
    select {
      selectFields = uid,title,author,author_email,page,ext_url
      pidInList = 107
      recursive = 99
      orderBy = datetime
      max = 1
    }
    fields {

      title.stdWrap.typolink.parameter.data = field:uid

      author.stdWrap.typolink {
        parameter.data = field:author_email
      }
      datetime.stdWrap{
        strftime = %d.%m.%Y %H:%M

}
    }

    additionalMarkers {

    }

  }
}

// load configuration
scrollerAjaxReq.2.templateFile < plugin.tx_conajaxscroller_pi1.templateFile
scrollerAjaxReq.2.scrollerContent < plugin.tx_conajaxscroller_pi1.scrollerContent

Unfortunately, the uid information used here is wrong. The URL is rewritten using the pageid instead.

Does someone already get this working and getting the right hyperlink?

By the way, could someone give me more "basic" info about his extension:

1. where is it defined that the title of tt_news should be used/displayed? In my TS above, if I delete the line title.stdWrap.typolink.parameter.data = field:uid I still get the same output BUT without hyperlink

2. what's exactely the usage of additionalMarkers ? What kind of info/stuff could be added here?

Thanks for your help.

Den

## Antworten

### [#2](https://www.typo3.net/d/104828-tt-news-hyperlink-in-con-ajaxscroller-with-realurl/2) · denba · 2011-04-08

Problem solved! Thanks to Sven the builder of this extension. In fact the problem was related to the tt_news usage/link, the typolink I used was not valid, I need to use the following formulation:

fields {
      title.stdWrap.typolink {
       parameter = {$plugin.tt_news.singlePid}
       additionalParams.wrap = &tx_ttnews[tt_news]=|
       additionalParams.field = uid
      }
    }

With singlePid defined in my constant.
Hope this can help.
Ben.

> **denba schrieb:**
>
> I installed and latest version of con_ajaxscroller and I'm facing some trouble with the definition of the hyperlink applied on the text.
>
> My goal is to use tt_news contents to populate the scroller. The title of my records are displayed as expected but unfortunately I'm not able to get the hyperlink working.
>
> My setup script is the following:
>
> plugin.tx_conajaxscroller_pi1.scrollerContent >
>
> plugin.tx_conajaxscroller_pi1 {
>   templateFile = EXT:con_ajaxscroller/static/tt_news/ajaxscroller.html
>
> scrollerContent = CUSTOM
>   scrollerContent {
>     table = tt_news
>     select {
>       selectFields = uid,title,author,author_email,page,ext_url
>       pidInList = 107
>       recursive = 99
>       orderBy = datetime
>       max = 1
>     }
>     fields {
>
>       title.stdWrap.typolink.parameter.data = field:uid
>
>       author.stdWrap.typolink {
>         parameter.data = field:author_email
>       }
>       datetime.stdWrap{
>         strftime = %d.%m.%Y %H:%M
>
> }
>     }
>
>     additionalMarkers {
>
>     }
>
>   }
> }
>
> // load configuration
> scrollerAjaxReq.2.templateFile < plugin.tx_conajaxscroller_pi1.templateFile
> scrollerAjaxReq.2.scrollerContent < plugin.tx_conajaxscroller_pi1.scrollerContent
>
> Unfortunately, the uid information used here is wrong. The URL is rewritten using the pageid instead.
>
> Does someone already get this working and getting the right hyperlink?
>
> By the way, could someone give me more "basic" info about his extension:
>
> 1. where is it defined that the title of tt_news should be used/displayed? In my TS above, if I delete the line title.stdWrap.typolink.parameter.data = field:uid I still get the same output BUT without hyperlink
>
> 2. what's exactely the usage of additionalMarkers ? What kind of info/stuff could be added here?
>
> Thanks for your help.
>
> Den

---

Quelle: „tt_news hyperlink in con ajaxscroller with realurl ?“, typo3.net, https://www.typo3.net/d/104828-tt-news-hyperlink-in-con-ajaxscroller-with-realurl
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
