[Typo3-UG Spain] No consigo colocar contentelements en las tablas de mi template

ncahen @ associatives.org ncahen at associatives.org
Thu Oct 6 00:41:59 CEST 2005


Hola colister at s,

Debutante total, estoy haciendo mi primer sitio con Typo3.

Ahora, tengo un problema:
Tengo un html template, con unos menus estáticos. Typo3 lo llama y lo 
interpreta sin problemas.

Mi problema es el siguiente: no consigo asignar un content element 
definido a un subpart ( un TD o un DIV ) de mi html template.

Aquí, precisamente, es el subpart  "content" que quiero  víncular con un 
conten element. No hé encontrado hasta la hora una información que me 
explique cómo tengo que hacerlo.

Si sólo me pudieraís decir donde encontraré esta información, os lo 
agredecería muchísimo.

 

Este es mi setup:



# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {

    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main1/index.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
    DIV.all = 1

  }

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

}

 

# 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
 

    # Substitute the ###content### subpart with some example content:

  subparts.content < temp.content
  subparts.content.table = tt_content
  subpart.content.select.orderBy = sorting
  subpart.content.select.where = colPos = 0

}

 
# 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


.
.
.
.

... Y, EN EL HTML TEMPLATE:



      &nbsp;</td>
    <td  id="content" width="508" rowspan="3"> </td>
    <td id="menu_1"width="142" rowspan="4">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>



More information about the TYPO3-UG-spain mailing list