[Typo3-dev] Repeation of data on clicking a link of a menu

Gautam Dey gautammassoft at indiatimes.com
Wed Aug 20 01:07:49 CEST 2003


Sir,
     I am working in TYPO quickstart version.The data under any link is 
shown twice while the same is clicked.
     The entire code of the template implemented is mentioned below.


# Configuring the Auto-Parser for main template:

plugin.tx_automaketemplate_pi1 {
      #Read the template file:
   content = FILE
   content.file = fileadmin/template/fpc_template.html

      #Here we define which elements in the HTML that
      #should be wrapped in subpart-comments:
   elements {
     BODY.all = 1
     BODY.all.subpartMarker = DOCUMENT_BODY

     HEAD.all = 1
     HEAD.all.subpartMarker = DOCUMENT_HEADER
     HEAD.rmTagSections = title

     TD.all = 1
   }

     # Prefix all relative paths with this value:
   relPathPrefix = fileadmin/template/
}

# Menu 1 cObject
temp.menu_1 = HMENU
   # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
     # Normal state properties
   NO.allWrap = <div class="menu1-level1-no"> | </div>
     # Enable active state and set properties:
   ACT = 1
   ACT.allWrap = <div class="menu1-level1-act" > | </div>
}
   # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
     # Normal state properties
   NO.allWrap = <div class="menu1-level2-no" align="center"> | </div>
     # Enable active state and set properties:
   ACT = 1
   ACT.allWrap = <div class="menu1-level2-act" align="center"> | </div>
}





# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
     # Feeding the content from the Auto-parser to the TEMPLATE cObject:
   template =< plugin.tx_automaketemplate_pi1
     # Select only the content between the <body>-tags
   #workOnSubpart = DOCUMENT_BODY

    subparts.menu_1 < temp.menu_1

     # Substitute the ###content### subpart with some example content:
    subparts.content < styles.content.get
   #subparts.content = TEXT
   #subparts.content.value = HELLO WORLD - CONTENT
}


# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
     # Feeding the content from the Auto-parser to the TEMPLATE cObject:
   template =< plugin.tx_automaketemplate_pi1
     # Select only the content between the <head>-tags
   workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
#page.headerData.10  < temp.headTemplate


    Please respond as early as possible keeping in  mind the urgeny.
						Gautam





More information about the TYPO3-dev mailing list