[TYPO3] IFSUB hack

Steffen stema at web.de
Wed Apr 5 12:26:53 CEST 2006


ok, this seems not to work at all.

it should be possible to manipulate the "isSubMenu" function in  
tslib/class.tslib_menu.php in line 1303:

	function isSubMenu($uid)	{

		$mount_info = $this->sys_page->getMountPointInfo($uid);
		if (is_array($mount_info))	{
			$uid = $mount_info['mount_pid'];
		}

		$recs =  
$this->sys_page->getMenu($uid,'uid,pid,title,doktype,mount_pid,mount_pid_ol,nav_hide');
		foreach($recs as $theRec)	{
			if (!t3lib_div::inList($this->titleExcludeList,$theRec['title']) &&  
!t3lib_div::inList($this->doktypeExcludeList,$theRec['doktype']) &&  
!$theRec['nav_hide'])	{	
				return TRUE;
			}
		}
	}

in my case TRUE is set, if the subtitles are not in the titleExcludeList.

is it also possible to apply this hack via typoscript, so that i don't  
have to rewrite the source code itself?

i appreciate every help!




On Wed, 05 Apr 2006 11:09:54 +0200, Steffen <stema at web.de> wrote:

> 10.if {
> numRows{
> table=pages
> select.pidInList.data = leveluid:-1
> }
> isGreaterThan = 2
> }



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the TYPO3-english mailing list