[TYPO3-templavoila] tv content slide
Tapio Markula
tapio.markula at atwebteam.com
Tue Dec 5 14:29:06 CET 2006
Valery Romanchev kirjoitti:
> Hi Dmitry
>>>
>>> So now I use old TemplaVoila 1.0.1 for all projects.
>>
>> Go and "vote" for that bug to be fixed :)
>
> I do not see much sense in sponsoring exactly this bug,
> because TemplaVoila 1.0.1 works well and may be this problem can be fix
> by using improvements to TV made by Tapio.
>
> I will try to use Tapio changes in upcoming project and will report if
> the problem can be solved in this way.
>
> Valery
>
I made this kind of solution
if ($result !== FALSE) {
$this->content .= $result;
// Added :confitions in order to accect showing content for page
type 'shortcut' (4)
$PageTSConfig=t3lib_BEfunc::getPagesTSconfig($myGET['id']);
if(isset($this->modTSconfig['properties']['allowContentForShortcut'])) {
if(!($this->modTSconfig['properties']['allowContentForShortcut']
&& $this->rootElementRecord['doktype']==4))
$render_editPageScreen = false; // New in 1.1.1 compared with
1.0.1 -! Do not output editing code for special doctypes!
}
elseif(isset($PageTSConfig['mod.']['SHARED.']['allowContentForShortcut'])) {
if(!($PageTSConfig['mod.']['SHARED.']['allowContentForShortcut']
&& $this->rootElementRecord['doktype']==4))
$render_editPageScreen = false;
}
else $render_editPageScreen = false;
}
highest priority for TS config for users/user groups
mod.web_txtemplavoilaM1.allowContentForShortcut=1/0
then
Page TS Config
mod.SHARED.allowContentForShortcut=1/0
Maybe just TS config for pages would be enough?
More information about the TYPO3-project-templavoila
mailing list