Zum Inhalt springen

Problem mit Modern Guestbook

Erstellt am 11. September 2005 · 5 Antworten · letzte Antwort am 2. Oktober 2005

Tags: Frage

dirkv99 ·

Hallo zusammen,
ich ein sonderbares Problem. Ich benutze CSS Styled Content und zahlreiche Extensions, die alle funktionieren. Jetzt möchte ich gern das "Modern Guestbook" einfügen und stelle fest, dass die Seite - ohne ein neues Template anzulegen - leer bleibt. Auch die Änderung "plugin.tt_guest.postform < tt_content.mailform.20" in ext_typoscript_setup.txt brachte noch keinen Erfolg. Wenn ich aber ein neues Template anlege und dort "Rootlevel" aktiviere, erscheint das Gästebuch! Die Navigation verschwindet gleichzeitig, so dass ich es dabei nicht belassen kann. Hat jemand eine Idee?

dirkv99 ·

hi!
anbei mein setup....

dirk

config.simulateStaticDocuments = PATH_INFO

###############################################
#CSS-Angaben fuer p-tags bereinigen
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=; 
}
###############################################

###############################################
#no wrapping of RTE lines
tt_content.text.20.parseFunc {
nonTypoTagStdWrap.encapsLines.nonWrappedTag >
nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = |
}
###############################################

###############################################
# Einstellungen für Listen aus RTE 
tt_content.text.20.parseFunc.tags.typolist.default.wrap = <ul> | </ul> 
tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap = 
tt_content.text.20.parseFunc.tags.typolist.1.fontTag = <ol> | </ol> 
tt_content.text.20.parseFunc.tags.typolist.1.split.1.wrap = 
###############################################


# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/xxxxx/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/xxxxx/
}



temp.menu_1 = HMENU
temp.menu_1.entryLevel = 0
temp.menu_1.stdWrap.wrap = <table cellspacing="1" cellpadding="0" border="0" width="100%"> | </table>
temp.menu_1.1 = TMENU
temp.menu_1.1 {
  NO.allWrap = <tr><td class="td_nav_inactive" valign="top"><span class="n_navigation"> | </span></td></tr>
  NO.stdWrap.htmlSpecialChars = 1
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <tr><td class="td_nav_active" valign="top"><span class="n_navigation"> | </span></td></tr>
}
temp.menu_1.2 = TMENU
temp.menu_1.2 {
  NO.allWrap = <tr><td class="td_nav_sub_active" valign="top"><span class="n_navigation_sub"> | </span></td></tr>
  NO.stdWrap.htmlSpecialChars = 1
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <tr><td class="td_nav_sub_inactive" valign="top"><span class="n_navigation_sub_active"> | </span></td></tr>
}



temp.menu_2 = HMENU
temp.menu_2 {
special = rootline
special.range = 1|-1
1 = TMENU
1.target = _self
1.wrap = <font class="rootline">Sie befinden sich hier:</font>|
1.NO.linkWrap = <font class="rootline">></font><span class="n_sub_category">|</span>
1.NO.stdWrap.htmlSpecialChars = 1
1.ACT.linkWrap = <span class="n_sub_category_act">|</span>
1.ACT.stdWrap.htmlSpecialChars = 1
}


# SEARCH
  temp.search = COA
  temp.search {

  20 < tt_content.search.30
  20.dataArray >
  20 {
  stdWrap.wrap = <table width="150" align="right" border="0" cellspacing="0" cellpadding="8"><tr> | </tr></table>
    layout = <td align="left" valign="bottom">###FIELD###  <input type="submit" value="Suchen" /></td>
    params = class="textbox"
    params.submit = class="submit"
    params.textarea = class="textarea"
    dataArray{
    10.type = sword=input,10
    20.label >
    20.type = scols=hidden
    20.value = tt_content.header-bodytext-imagecaption
    30.type = stype=hidden
    30.value = L0
    }
    redirect = 11
   }
  }




# 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

  subparts.menu_2 < temp.menu_2

  subparts.search < temp.search

  subparts.content_main < styles.content.get

  subparts.content_right < styles.content.getRight

  subparts.content_left < styles.content.getLeft

  styles.content.loginform.pid = 204

  marks.1ST_LEVEL = TEXT
  marks.1ST_LEVEL.data = leveltitle:1
  marks.1ST_LEVEL.wrap = <span class="1st_level"> | </span>


  marks.CURRENT_LEVEL = TEXT
  marks.CURRENT_LEVEL.data = page:title
  marks.CURRENT_LEVEL.wrap = <span class="CURRENT_LEVEL"> | </span>

  marks.CURRENT_ID = TEXT
  marks.CURRENT_ID.data = TSFE : id


}


plugin.tt_news {
  limit = 3
  displayList {
    image.file.maxW = 100
    imageWrapIfAny (
      <table align="left" bgcolor="#AAAAAA" cellpadding="1" cellspacing="0" border="0">
      <tr><td>
      <table bgcolor="#EEEEEE" cellpadding="0" cellspacing="0" border="0">
      <tr><td> | </td></tr>
      </table>
      </td></tr>
      </table>
    )
  }
  displaySingle {
    image.file.maxW = 160
    imageWrapIfAny (
      <table align="left" bgcolor="#AAAAAA" cellpadding="1" cellspacing="0" border="0">
      <tr><td>
      <table bgcolor="#EEEEEE" cellpadding="0" cellspacing="0" border="0">
      <tr><td> | </td></tr>
      </table>
      </td></tr>
      </table>
    )
    title_stdWrap.wrap = <b><font face="arial">|</font></b>
  }
  _LOCAL_LANG.de {
    pi_list_browseresults_displays = Artikel ###SPAN_BEGIN###%s bis %s</span> von ###SPAN_BEGIN###%s</span>
  }
}


plugin.tt_news.displayList.date_stdWrap.strftime = %A, %e. %B %Y
plugin.tt_news.displayLatest.date_stdWrap.strftime = %A, %e. %B %Y
plugin.tt_news.displaySingle.date_stdWrap.strftime = %A, %e. %B %Y
plugin.tt_news.displaySingle.time_stdWrap.strftime = %H:%M Uhr
plugin.tt_news.displayLatest.subheader_stdWrap.crop = 75 | ...
plugin.tt_news.displayLatest.subheader_stdWrap.crop = 69 | ...





# 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
}



tt_content.textpic.20{ 
1.imageLinkWrap = 1 
1.imageLinkWrap { 
enable = 1 
bodyTag = <body bgcolor="white" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 
wrap = <a href="javascript:close();"> | </a> 
JSwindow = 1 
JSwindow.newWindow = 1 
JSwindow.expand = 0,0
} 
}

tt_content.image.20{ 
1.imageLinkWrap = 1 
1.imageLinkWrap { 
enable = 1 
bodyTag = <body bgcolor="white" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 
wrap = <a href="javascript:close();"> | </a> 
JSwindow = 1 
JSwindow.newWindow = 1 
JSwindow.expand = 0,0
} 
}

tt_content.image.20.1.imageLinkWrap.height = 768m




# German language, sys_language.uid = 0 
config.sys_language_uid = 0 
config.language = de 
config.locale_all = de_DE 





# Default PAGE object:
page = PAGE

# 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

page.config.tx_loginusertrack_enable = 1
SLAng ·

Hast du denn auch was eingestellt in deinem Gästebuch Inhaltselement?
List oder Teaser oder ...

Hast du ei zweites element für das Fpormular eingestellt?

Wird denn gar nichts ausgegeben? Auch keine Fehlermeldung?

dirkv99 ·

also es ist so:
wenn ich in meinem template "rootlevel" anklicke, wir das "modern guestbook" perfekt ausgegeben. einziger nachteil: die navigation wird auf die seite gästebuch reduziert und alle anderen einträge verschwinden. auf ein special.range 0|-2 oder entrylevel -1 etc. hilft da nix, weil es ja jetzt rootlevel ist.

wenn ich den haken entferne, erscheint alles wie es sein sollte, außer, dass nichts vom gästebuch zu sehen ist. ich habe das gefühl, das irgendeine relative pfadangabe zu diesem problem führt. ich habe deshalb schon versucht, mein template an einen andere ort zu verlegen (z.b. fileadmin), aber auch dann bleibt das problem erhalten.

keine ahnung, was ich machen kann... :-(