[TYPO3-templavoila] Another usuability issue

Tapio Markula tapio.markula at atwebteam.com
Fri Dec 8 16:36:56 CET 2006


Benjamin Mack kirjoitti:
> Hey Tapio,
> 
> actually, here's the difference (actually, I added just one line of code 
> - if you look at the BT / patch, you'll see it immediately)
> 
>  - I don't use TSconfig
ok
>  - I don't show the content, I show a link to edit the page properties

I did that because a user or tv_content_slide need to set content - and 
in many situations also for pages, which type is 'shortcut', because
shortcut page is common page, which values are inherited to subpages

>  - I show the "edit page properties link" for every "specialDoktype" not 
> just the shortcut (doktype 4)

ok - that would be a nice idea (endeed if used with my configurations, 
that should be disabled in order to avoid redundant links.

The following code should implement both ideas:

$PageTSConfig=t3lib_BEfunc::getPagesTSconfig($myGET['id']);
						
						if($this->rootElementRecord['doktype']==4 && 
(isset($this->modTSconfig['properties']['allowContentForShortcut']) || 
isset($PageTSConfig['mod.']['SHARED.']['allowContentForShortcut']))) {
						 
if(isset($this->modTSconfig['properties']['allowContentForShortcut'])) {
								if(!$this->modTSconfig['properties']['allowContentForShortcut'])
									$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'])
									$render_editPageScreen = false;
								}
							}
						else	{
							$this->content .= '<div class="editPageProperties"><strong 
class="editPageProperties">'.$this->link_edit('<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/edit2.gif','').' 
title="'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_mod_web_list.xml:editPage')).'" 
alt="" style="text-align: center; vertical-align: middle; border:0;" 
/>'.$LANG->sL('LLL:EXT:lang/locallang_mod_web_list.xml:editPage'),'pages',$this->id).'</strong></div>';
  							$render_editPageScreen = false;
							}



> Also, it's not that the solution "TemplaVoila" itself annoys me - I like 
> it actually very much, it's just that some features are missing ;-) 

some features annoyes me too much but I have done fixes because of some 
clients


More information about the TYPO3-project-templavoila mailing list