[TYPO3-english] Newbie Questions (Menu / Templating)

Lee M. Childress leemchildress at hotmail.com
Wed Jun 9 15:17:44 CEST 2010




I have searched the lists and also Google and have not
found exactly what I am looking for, so I am hoping someone out there can point
me in the right direction or offer some insight.

 

(1) I am trying to create a navigation menu identical to
typo3.org's menu on the left, where the parent is always displayed at the top
of the menu and all child documents immediately within the parent are shown. So
far this is what I have (without showing the parent name at the top of the
menu):

 

# Left Menu cObject

temp.leftmenu_1 = HMENU

temp.leftmenu_1.special = directory

temp.leftmenu_1.special.value.data = leveleuid:-2

  # First level
menu-object, textual

temp.leftmenu_1.1 = TMENU

temp.leftmenu_1.1 {

  wrap = <ul>
| </ul>

    # Normal state
properties

  NO.allWrap =
<li class="menu1-level1-no"> | </li>

    # Enable active
state and set properties:

  ACT = 1

  ACT.allWrap =
<li class="menu1-level1-act"> | </li> }

 

This works until the active link does not have any child
documents at which time no links appear in the menu. With typo3.org's menu, if
there are no child documents, the menu stays within the current' parent's folder.
I know I am rambling but I hope you know what I mean. In brief again, just like
typo3.org does. Also, how do you make the parent name appear at the top of the
menu?

 

(2) I am using the automaketemplate extension for
templating. In my template script I have:

 

# Read the template file:

  content = FILE

  content.file =
fileadmin/templates/main/templates/template_home.html

 

for my home page template. I would like to have a
different template for the rest of the site (only home page is different). How
do I change templates?

 

Thank you so much for any help you can provide. Although
I have found partial answers searching the net, nothing has spelled out exactly
what I want, at least that I have found.

 

Lee

 		 	   		  


More information about the TYPO3-english mailing list