|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi all,
I am new with workspace and i do not understand how it works with my extension in frontend. I developped a news extension taht works. Now I have to implement frontend preview for it. Here's my code -- I took a look before to tt_news extension -- $singleWhere = 'tx_mediaactusop_news.uid=' . intval($this->piVars['showUid']); $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( '*', 'tx_mediaactusop_news', $singleWhere); $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res); // get the translated record if the content language is not the default language if ($GLOBALS['TSFE']->sys_language_content) { $OLmode = ($this->sys_language_mode == 'strict'?'hideNonTranslated':''); $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_mediaactusop_news.uid', $row, $GLOBALS['TSFE']->sys_language_content, $OLmode); } if ($this->versioningEnabled) { // get workspaces Overlay $GLOBALS['TSFE']->sys_page->versionOL('tx_mediaactusop_news.uid',$row); // fix pid for record from workspace $GLOBALS['TSFE']->sys_page->fixVersioningPid('tx_mediaactusop_news.uid',$row) ; } But it never get my draft version when admin in draft with preview setted. How do I manage this in FE ? Thanks in advance and sorry for noob issue ^^ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] set up TYPO3 works with subdomains | Rocky Ou | typo3-english@lists.netfielders.de | 3 | 18.05.2007 08:57 |
| [TYPO3] Is there a RSS extension that works with RealURL? | Rollo Gleeson | typo3-english@lists.netfielders.de | 0 | 14.05.2007 12:00 |
| [TYPO3] Is there a RSS extension that works with RealURL? | Rollo Gleeson | typo3-english@lists.netfielders.de | 1 | 14.05.2007 11:25 |
| [TYPO3] anyone have an idea why my rss link works only on somepages, but links to the typo3 backend on others? | dave typo | typo3-english@lists.netfielders.de | 0 | 01.03.2007 13:26 |
| [TYPO3-dev] Object copy fails, reference works ... | Steffen Kamper | typo3-dev@lists.netfielders.de | 0 | 02.01.2007 12:22 |