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

stefano cecere scecere at krur.com
Fri Dec 5 11:31:49 CET 2008


Hi Jochen

thanks four your comments...i agree the topic should be developed at core level, improving the actual "save and view" button (and i would add it to the list module also)
the displayVersionPreview is totally unusable, since the "versions" module is quite outdated by workspaces (it's a little mess also there)
and it would be very complicated for a simple editor who writes a dummy news and want to see it in fe before publishing.

i guess we should talk these topics in the dev list...

stefano


Jochen Rieger wrote:
> 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