[TYPO3] Guestbook problem (tt_guest)

Brecht Yperman webmaster at nospam.bar-on.be
Tue Jan 3 15:54:33 CET 2006


Hi,

I'm a Typo3 newbie, but so far I am really pleased with this product. Having 
a little problem though: guestbook entries are correctly posted to the 
database (I can see them all through Web > List > ...), but only the last 
two are displayed, no matter what offset is posted.

I removed the CSS Styled Content static thingy (god knows what it means, but 
after removing it, the gb started working a bit).

I'll post my template record, as I think it has something to do with that.

Thanks in advance,
Brecht

== Template record ==
Constants: {empty}
Setup:
plugin.tt_guest.postform.dataArray.50.type = data[tt_guest][NEW][www]=input

# Configuring the Auto-Parser:

plugin.tx_automaketemplate_pi1 {

    # Read the template file:

  content = FILE

  content.file = fileadmin/template/main/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


    TABLE.all = 1

  }



    # Prefix all relative paths with this value:

  relPathPrefix = fileadmin/template/main/

}

# 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 = <tr><td width="165">|</td></tr>
}


 # 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 ###menu_1### subpart with some example content:

  subparts.navigation < temp.menu_1



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

  subparts.content < styles.content.get

}





# 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

Clear: constants and setup are checked
Rootlevel: checked
Include static: content (default) 





More information about the TYPO3-english mailing list