Wednesday, February 25, 2009

Preview of tt_news items in custom workspace.

PROBLEM: how can I preview a tt_news item in draft workspace?

SOLUTION: The folder with news items has ben transformed from sysfolder to standard page and then a new plugin tt_news has been inserted with mode VERSION_PREVIEW. After the icon for the news has been applied.

We do not use draft workspace of typo3 because it does not work well... we created a custom workspace

3 comments:

comprock said...

Can you post a few screenshots from page and list mode of how you built up the workspace article preview?

My testing isn't getting any results.

Massimo said...

As I already explained unfortunately news items are not managed like normal pages.
In order to display a preview of a draft news, please follow these instructions:
1. Prepare your draft news in a custom workspace we called “4:DRAFT workspace” (any new item or new version of an existing items will create a draft news)
2. Click on List
3. Click on the News folder 4. The list of news appear.
To preview a news item, just click its forth icon (Display Versions) which contains the number of existing versions
5. The “versioning page” will appear
6. In the list of versions, the live version always blinks , while all draft versions display also a lens icon for the preview.
Once clicked the lens icon, a new page opens with the desired preview
7. The preview will work in any workspace; it is important that the Frontend Preview checkbox is always selected

In the backend the page with all news items should contain a content element with type "plugin" and select "News" with Items VERSION_PREVIEW and starting point page the folder with the news.
As template we use standard template for tt_news put in the /fileadmin folder.

comprock said...

I got it working.

The articles page needs to be underneath a normal site architecture than storage folder so that page templates are shown.

Next, I didn't realize that you could hit versioning preview through versioning. I'm used to hitting save and view in live workspace.

Thank you.