简体   繁体   中英

TYPO3 tt_news genericmarkers url for every news item on list view

I create the genericmarker (###GENERIC_URL###) of "current" url and display it on single view page.

plugin.tt_news {
  genericmarkers.URL = TEXT
  genericmarkers.URL {
    data = getIndpEnv:TYPO3_REQUEST_URL
    wrap = link: |
  }
}

Is it possible to get the tt_news url for every news item and display it on list view as a additional url link?

If I understood you correctly, you need single view url ? This should work :

plugin.tt_news.genericmarkers.URL = COA
plugin.tt_news.genericmarkers.URL {
    1 = TEXT
    1.data = TSFE:baseUrl
    2 = TEXT
    2 {
        value = 
        typolink = 1
        typolink {
            # Change 1 to page UID where your single view plugin is placed
            parameter = 1
            additionalParams = &tx_ttnews[tt_news]={field:uid}
            additionalParams.insertData = 1
            returnLast = url
        }
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM