[Typo3] Dynamic Menus

Miller, Eric A. EricMiller at creighton.edu
Tue May 31 20:42:33 CEST 2005


Try this ;)

###############################
# Modify the RTE for paragraph break behavior
###############################
tt_content.text.20.parseFunc {
 nonTypoTagStdWrap.encapsLines.nonWrappedTag >
 nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = |<br />
 nonTypoTagStdWrap.encapsLines.removeWrapping = 1
}

tt_content.text.20 {
 wrap = <p>|</p>
}

########################################
# Build Template
temp.mainTemplate = TEMPLATE 
temp.mainTemplate {
   template = FILE
   template.file = fileadmin/templates/doit.html

########################################
# METATAG keywords from contants value
    subparts.KEYWORDTEST = TEXT
    subparts.KEYWORDTEST.value = "{$keywords}"

########################################
# Build Main Content
   subparts.CONTENT = TEXT
   subparts.CONTENT < styles.content.get

# Build Right Content
   subparts.CONTENT_RIGHT = TEXT
   subparts.CONTENT_RIGHT < styles.content.getRight

########################################
# Build Menu   
subparts.NAV_LOCAL = HMENU
subparts.NAV_LOCAL.special = rootline
subparts.NAV_LOCAL.special.value = 3
subparts.NAV_LOCAL.1 = TMENU
subparts.NAV_LOCAL.1 {
                # Normal state properties
	NO.allWrap = <li> | </li>	
	# Enable active state and set properties:
  	ACT = 1
	ACT.allWrap = <li> | </li>

}
subparts.NAV_LOCAL.2 = TMENU
subparts.NAV_LOCAL.2 {
                # Normal state properties
	NO.allWrap = <li class="menu_2"> | </li>	
	# Enable active state and set properties:
  	ACT = 1
	ACT.allWrap = <li class="menu_2"> | </li>

}

########################################
# Get Page SubTitle
    subparts.SUB_TITLE = TEXT
    subparts.SUB_TITLE.field = subtitle

#######################################
# Build Bread Crumbs
   subparts.CRUMBS = COA
   subparts.CRUMBS.10 = HMENU
   subparts.CRUMBS.10.special = rootline
   subparts.CRUMBS.10.special.range = 0|-2
   subparts.CRUMBS.10.1 = TMENU
   subparts.CRUMBS.10.1.target = _top
   subparts.CRUMBS.10.1 {
   	NO.linkWrap = |&nbsp;&raquo;&nbsp;
   	CUR = -1
   	CUR.doNotLinkIt = 1,20
	CUR.doNotShowLink = 1,20
   }
   subparts.CRUMBS.20 = TEXT   
   subparts.CRUMBS.20 {
       field = title
       if {
             value = 1,20
             isInList.field = uid
             negate = 1
       }
    }

}
# XHTML Complaince
config.xhtml_cleaning = all

#modify Content Header
lib.stdheader.10.1.fontTag = <h4>|</h4>

# Build Page Information
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1
page.10 < temp.mainTemplate


 


Eric Miller
Web Systems Engineer
Creighton University

Office: 402.280.3933
Cell:   402.740.2518

----------------------------------------
"If all the world is a stage, where is the audience sitting? " ~ George
Carlin
----------------------------------------

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of JoH
Sent: Tuesday, May 31, 2005 12:09 PM
To: typo3-english at lists.netfielders.de
Subject: Re: [Typo3] Dynamic Menus

> I am running both a dynamic Breadcrumb and Dynamic menu system. My 
> Breadcrumbs are working correctly but my menus are showing all the way

> back to the root.
>
> I just want to display the list of pages directly below the current 
> pages. It is not a root level nor can it be.

In your TS setup you wrote ... - ooops - ... where has it gone?
;-)

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!) Dieter Nuhr,
German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau


_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list