Learn about the top 2016 CMS trends. Read on.


Per tt_news documentation, through a page’s TSConfig, you can preview news records on a front-end page with the SINGLE view news content element.

If your articles preview page has page id 85, then add the following to the news storage folder TSConfig.

tx_ttnews.singlePid = 85

85 is determined by hovering your mouse over the page icon in the page tree and reading what number it says on via the title pop-up as id=85.

If you haven’t already saved your news item before pressing the "Save document and view page" icon, the article won’t show up on the front-end. This is because the tt_news record on the backend doesn’t know its own id. Just click the "Save document and view page" icon again.

Don’t use the preview URL as the final URL for putting into other content. The preview URL is raw and hasn’t been processed by a link handler like Typolink, RealURL, Cooluri or Simulate static.

That’s it, a very neat, quick and valuable trick. You could even send this link to your editor for article proof-reading when not using TYPO3 Workspaces.

Still stuck? Write us.

  • Frohike

    As I was testing this feature with TYPO3 6.1.11 and tt_new 3.6.0, it worked well. Except in other workspaces than the Live workspace :-/

  • Toni

    I have 6.2.4 and 3.6 tt_news and i get “No news id given” :(

    Maybe its me, maybe its 6.2 :(

    • Toni, I don’t actively work with TYPO3 anymore. I do recall that “No news id given” means that no incoming `tt_news.id` was passed in for looking up news record. Are you using RealURL or the like?

      • Toni

        Hey,

        i am not using realURL or anything like that. Ill figure it out somehow but thank you :)

  • Fred

    Nice trick. Wanted to use it to show tt_news in draft (hidden mode) before publishing them. But it only work with published content and does not work in draft workspace.

    Any idea how to properly preview a tt_news?

    • Fred, I’ve not touched TYPO3 Workspaces for quite a while. I suggest reaching out to http://www.web-essentials.asia/contact.html for help. These guys provide excellent TYPO3 support.

      • Fred

        Thanks for teh tip.

        Do you have an idea how to show tt_news that are hidden (in the live mode, but hidden) ?

        • Fred, the above tip should work. If not, then there’s been a change in `tt_news` that I’m not aware of. I’m sorry. Do try reaching out to Web Essentials, they’re awesome TYPO3 support in my mind.