[TYPO3-core] Gremlin #1625: Create an icon for the "not in menu"pages

Ingmar Schlecht ingmar at typo3.org
Thu Jan 26 14:26:25 CET 2006


+1

cheers
Ingmar

Michael Stucki schrieb:
> Old patch, slightly changed:
> 
> I once asked for disabling the "Not in menu" page type completely. That
> change was rejected, but it contained a 2nd change which still makes a lot
> of sense:
> 
> If the page type is "Standard" or "Advanced" and the nav_hide flag is set,
> the icon will change to the same as it would have been "Not in menu".
> 
> Regards, michael
> 
> 
> Michael Stucki wrote:
> 
>> Hi Kasper,
>>
>>> I suggest we wait removing doktype five till 5.0 of TYPO3. Same arguments
>>> as with shortcut/external URL.
>> This patch is still on my todo list. I see no problem with changing this
>> _now_ because everything still works as expected - it just can't be
>> selected anymore.
>>
>> If you still don't agree, I will at least commit the 1st hunk (visual
>> feedback if nav_hide has been set on regular pages). OK?
>>
>> Attached is the same patch again.
>>
>> Regards, michael
> 
> 
> ------------------------------------------------------------------------
> 
> diff -ru typo3_src-3.9.0-dev.orig/t3lib/class.t3lib_iconworks.php typo3_src-3.9.0-dev/t3lib/class.t3lib_iconworks.php
> --- typo3_src-3.9.0-dev.orig/t3lib/class.t3lib_iconworks.php	2005-10-26 13:10:19.000000000 +0200
> +++ typo3_src-3.9.0-dev/t3lib/class.t3lib_iconworks.php	2005-10-27 18:44:43.000000000 +0200
> @@ -132,6 +132,8 @@
>  
>  			// First, find the icon file name. This can depend on configuration in TCA, field values and more:
>  		if ($table=='pages')	{
> +			if ($row['nav_hide'] && ($row['doktype']==1||$row['doktype']==2))	$row['doktype']=5;	// Workaround to change the icon if "Hide in menu" was set
> +
>  			if (!$iconfile = $PAGES_TYPES[$row['doktype']]['icon'])	{
>  				$iconfile = $PAGES_TYPES['default']['icon'];
>  			}
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core




More information about the TYPO3-team-core mailing list