TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 07.06.2007, 12:37
Sylvain Gourvil
Gast
 
Beiträge: n/a
Standard [TYPO3] [Extension and Wordspace] How it works ?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:28 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75