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

stefano cecere scecere at krur.com
Thu Dec 4 11:12:38 CET 2008


i solved the topic with a simple thing:

i added a &preview=1 to the url when previewing a record (save and view in the BE)
in class.tx_ttnews_tcemain.php


	$GLOBALS['_POST']['popViewId_addParams'] = ($fieldArray['sys_language_uid']>0?'&L='.$fieldArray['sys_language_uid']:'').'&no_cache=1&preview=1&tx_ttnews[tt_news]='.$id;


the FE pugin then check if this variable is set and clear the enableFields (hidden and other checkings):
in pi/class.tx_ttnews.php (init())

	if (t3lib_div::_GET('preview')) {
		$this->enableFields = '';
	}

so it shows any hidden or programmed tt_news

can anybody commit this little, BUT VERY IMPORTANT, feature to tt_news?

stefano


stefano cecere wrote:
> since the "normal" preview hidden article doesn't work well (at least 
> for me in a standard 4.2.3 installation)
> i tried using Workspaces.. so i make an editor use the workspace for 
> drafts etc..
> BUT
> when i do "save and View", if in Workspace mode the TSConfig is not read 
> correctly, so it doesn't go to the:
> TSconfig: tx_ttnews.singlePid = 88
> 
> but opens the tt_news sysfolder
> 
> 
> 
> now i ask: has anybody a really "working tt_news with preview" 
> installation, or should i start debugging/tweaking the PHP code?
> (it is no problem to me.. just to know if nobody till now needed a good 
> preview solution for articles! something that i think is really necessary
> for a press agency redaction, for example!)
> 
> 
> ciao
> stefano


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