[TYPO3-ttnews] preview article doesn't work in workspace

Jochen Rieger j.rieger at connecta.ag
Thu Dec 4 12:07:48 CET 2008


Hi Stefano,

> now i ask: has anybody a really "working tt_news with preview" 

although you found a solution (there are several others as well using 
hooks for selecting tt_news records and ignoring the enableFields) the 
whole things seems a bit more complex to me.

Your solution would also show deleted records and doesn't check if the 
visitor using the preview-GET-param is an authorized BE-User having the 
right to view the record.

While of cause doing it this way might be suitable for some case where 
tt_news records do not contain sensitive content there are also other 
cases that require more security.

In tt_news there is the displayVersionPreview function which seems to 
have a good implementation. But I recall that I could not get that to 
work out of the box once I tried. And also this would require to have 
set up a news record AND a new version of it.

So finally ... really needed would be a preview mode that works via 
"Save and View"-button. But that's no tt_news specific thing. Rather a 
core issue in general for displaying / previewing all kinds of records.

Ideas:

1) Page TS Config (a bit like the linkhandler config) for records to 
tell them on which page a single view plugin would be found to display a 
preview version.
2) Some core adjustments to the "save and view"-button to generate the 
link behind it according to page ts config setup.

Regards,
Jochen


More information about the TYPO3-project-tt-news mailing list