Zum Inhalt springen

Hilfe weis nicht weiter....

Erstellt am 19. Juni 2006 · 15 Antworten · letzte Antwort am 21. Juni 2006

Tags: Frage

Unbekannter Benutzer ·

was funktioniert denn nicht (wenn du den Code einsetzt)?
wird dir gar nichts angezeigt?

hast du denn den Code an deinen eigenen angepasst (-> "dein.MARKER" und die PID's ersetzt,...)?

Opfer ·

Ja hab ich! Und an der Stelle wo ich denn Inhalt anzeigen möchte hab ich auch den MARKER eingetragen! ###MARKER###
Aber da geht überhaupt nichts.
Das einzigste was ich seh wenn ich die seite betrachte ist eben nur: ###MARKER###

Hab echt kein Plan, aber muss das unbedingt hinbekommen.
Danke mfg Mike

Unbekannter Benutzer ·
marks.MARKER = RECORDS [...]

müsste mal sicher irgendwo in deinem Setup stehen
und den Kommentar

#ID(s) der content-elemente, mit komma trennen

würde ich noch entfernen

Opfer ·

Das Kommentar hab ich rausgemacht! Sonst steht der ganze Code von eben drinne. Denn hab ich im Adminmenü unter Template ->Info/Modify-> Setup ganz unten dazu getan.

Dann bin ich in mein eigenes ertelltes Typo3 Template rein und hab in der index.html ###MARKER### reingesetzt, da wo der Inhalt angezeigt werden soll.
So das wars.... wird zwar vollkommen falsch sein, aber hoffe um hilfe.

danke mfg, Mike

Opfer ·

Das TS:

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

    DIV.all = 1
    SPAN.all = 1
  }

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

temp.meheadline1 = TEXT
temp.meheadline1.data =leveltitle:1
temp.meheadline1.wrap =  | 
temp.meheadline2 = TEXT
temp.meheadline2.data =leveltitle:2
temp.meheadline2.wrap =  | 

temp.leftmenu = HMENU
temp.leftmenu.1 = TMENU
temp.leftmenu.1 {
	expAll = 0
	wrap = <table width="150" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="clear.gif" width="1" hspace="1" height="1" vspace="3" border="0" alt="" /></td></tr> | </table>
	NO.linkWrap = {$menu.L0.fontWrap}
	NO.doNotLinkIt = {$menu.L0.noLink}
	NO.allWrap = <tr><td><img src="clear.gif" width="1" height="1" vspace="3" border="0" alt="" /><br /> | </td></tr>
}

temp.leftmenu.2 = TMENU
temp.leftmenu.2 {
	wrap = <tr><td nowrap="nowrap"> | </td></tr>
	NO {
    beforeImg =  {$menu.file.bullet}
    beforeROImg = {$menu.file.bullet_RO}
    beforeImgTagParams = hspace="2"
    RO = 
    after = <br />
    ATagBeforeWrap = 1
    linkWrap= {$menu.L1.fontWrap}
	}
}


temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template < plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_BODY
  subparts.content < styles.content.get
subparts.mheadline < temp.meheadline1
subparts.msubheadline < temp.meheadline2
 subparts.menu_1 < temp.leftmenu
}


# 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
page.config.doctype = xhtml_trans

# 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

marks.AKTUELL = RECORDS
marks.AKTUELL {
  tables = tt_content
  source = 35
  dontCheckPid = 1
}

Das HTML:

<html>

<head>

	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

	<link type="text/css" href="styles/common.css" rel="stylesheet" />

	<title> Conti Bistro </title>

	<script type="text/javascript" src="scripts/cookies.js"></script>

	<script type="text/javascript" src="scripts/efa_fontsize.js"></script>

<script type="text/javascript">

function expand(oCaller) {

//alert(oCaller.offsetHeight);

	oCaller.lastChild.style.display= 'block';

//	oCaller.lastChild.style.position= 'absolute';

	oCaller.lastChild.style.visibility='visible';

	oCaller.lastChild.style.top= oCaller.offsetHeight+'px';

	oCaller.lastChild.style.left= '-1px';

}

function collapse(oCaller) {

	oCaller.lastChild.style.visibility= 'hidden';

	oCaller.lastChild.style.display= 'none';

}

function highlight(oCaller) {

	oCaller.parentElement.style.backgroundColor= '#8997BA';

}

function normal(oCaller) {

	oCaller.parentElement.style.backgroundColor= '#00295D';

}

</script>

</head>

<body>

<script type="text/javascript" language="JavaScript1.2">

			if (efa_fontSize) efa_fontSize.efaInit();

		</script>

<div id="page"> 
  <div id="mheader"> 
    <table cellpadding="0" cellspacing="0">
      <tr> 
        <td id="mlogo"><a href="/"><img src="res/cGLogo.jpg" width="97" height="101" alt=" conti Gastronomie " title=" conti Gastronomie " /></a></td>
        <td id="mslogan" style="font-size:80%;"> <span id="_mheadline" class="bone"> 
          </span><span id="_msubheadline"> </span> </td>
      </tr>
    </table>
  </div>
  <div id="mnavbar"> 
    <table cellpadding="0" cellspacing="0" border="0" align="left">
      <tr class="mnbimg"> 
        <td class="f"></td>
        <td class="o"><img src="res/Suppe-mitDrink_upload.jpg" width="95" height="80" alt=" Wir &uuml;ber uns " title=" Wir &uuml;ber uns " /></td>
        <td class="o"><img src="res/cGsBistro.jpg" width="95" height="80" alt=" Bistro + Restaurant " title=" Bistro + Restaurant " /></td>
        <td class="o"><img src="res/conti_teaser_180.jpg" width="95" height="80" alt=" Catering " title=" Catering " /></td>
        <td class="o"><img src="res/cGsAbout.jpg" width="95" height="80" alt=" ContiTreff " title=" ContiTreff " /></td>
        <td class="o"><img src="res/Jazz-Musiker_upload.jpg" width="95" height="80" alt=" Aktuell - Events " title=" Aktuell - Events " /></td>
        <td class="o"><img src="res/AlkoholfreieGetr_nke_upload_0606.jpg" width="95" height="80" alt=" Bildergalerie " title=" Bildergalerie " /></td>
        <td class="o"><img src="res/Conti_dekoriert_Teilausschnit_upload.jpg" width="95" height="80" alt=" Presse " title=" Presse " /></td>
        <td class="o"><img src="res/Desert-RoterTeller_upload.jpg" width="95" height="80" alt=" Kontakt " title=" Kontakt " /></td>
      </tr>
      <tr class="mnblinks" style="background-color:#00295D;color:#ffffff;"> 
        <td><ul>
            <li><a href="/index.php?id=1">Home</a></li>
          </ul></td>
        <td><ul>
            <li onmouseover="javascript:expand(this);" onmouseout="javascript:collapse(this);"><a>Wir 
              über uns</a> 
              <ul style="background-color:#00295D;border:1px solid #ccccff;margin:0;padding:0;visibility:hidden;display:none;">
                <li><a href="/index.php?id=13">Team</a></li>
                <li><a href="/index.php?id=14">Philosophie</a></li>
                <li><a href="/index.php?id=15">HBW</a></li>
              </ul>
            </li>
          </ul></td>
        <td><ul>
            <li onmouseover="javascript:expand(this);" onmouseout="javascript:collapse(this);"><a>Restaurant</a> 
              <ul style="background-color:#00295D;border:1px solid #ccccff;margin:0;padding:0;visibility:hidden;display:none;">
                <li><a href="/index.php?id=16">Conti Bistro</a></li>
                <li><a href="/index.php?id=17">Bar Lounge</a></li>
                <li><a href="/index.php?id=18">Tiroler Stube</a></li>
              </ul>
            </li>
          </ul></td>
        <td><ul>
            <li onmouseover="javascript:expand(this);" onmouseout="javascript:collapse(this);"><a>Catering</a> 
              <ul style="background-color:#00295D;border:1px solid #ccccff;margin:0;padding:0;visibility:hidden;display:none;">
                <li><a href="/index.php?id=19">Philosophie</a></li>
                <li><a href="/index.php?id=20">Konferenzzentrum</a></li>
                <li><a href="/index.php?id=21">München und Umgebung</a></li>
                <li><a href="/index.php?id=22">Referenzen</a></li>
              </ul>
            </li>
          </ul></td>
        <td><ul>
            <li><a href="/index.php?id=6">Conti Treff</a></li>
          </ul></td>
        <td><ul>
            <li><a href="/index.php?id=5">Events</a></li>
          </ul></td>
        <td><ul>
            <li><a href="/index.php?id=4">Bildergalerie</a></li>
          </ul></td>
        <td><ul>
            <li><a href="/index.php?id=3">Presse</a></li>
          </ul></td>
        <td><ul>
            <li><a href="/index.php?id=31">Kontakt</a></li>
          </ul></td>
      </tr>
      <tr class="mnbspacers" style="background-color:#8997BA;color:#ffffff;"> 
        <td><img src="res/weiss.gif" width="218" height="1" border="0" alt="" /></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
        <td><div class="empty"></div></td>
      </tr>
    </table>
  </div>
  <table id="mmain" cellpadding="0" cellspacing="0">
    <tr> 
      <td class="l"> <div id="mleft"> 
          <div id="mnews" style=""> 
            <h2>aktuell</h2>
            <div id="mnticker" style="display:box;height:200px;padding:5px;background-color:#00295D;overflow:hidden;"> 
              <p>###AKTUELL###</p>
            </div>
          </div>
          <div id="mcInf"> 
            <h2 id="telefon">Telefon 089 / 551 78-684</h2>
            <div id="adress"> 
              <p>Conti Gastronomie<br />
                im Haus der Bayerischen Wirtschaft<br />
                Max-Joseph-Str. 5<br />
                80333 München</p>
            </div>
          </div>
          <div id="impr"> <a href="/index.php?id=31">Impressum</a> </div>
        </div></td>
      <td> </td>
      <td><table width="100%" height="43" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td> </td>
          </tr>
        </table>
        <table id="mmain" cellpadding="0" cellspacing="0">
          <tr> 
            <td><div id="content"> contents </div></td>
          </tr>
        </table></td>
    </tr>
  </table>
  <div id="mfooter">   </div>
</div>

</body>

</html>
Unbekannter Benutzer ·
marks.AKTUELL = RECORDS
marks.AKTUELL {
  tables = tt_content
  source = 35
  dontCheckPid = 1
}

befindet sich am falschen Ort
-->

temp.mainTemplate {
...
}
Opfer ·

Stimmt das jetzt so?

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

    DIV.all = 1
    SPAN.all = 1
  }

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

temp.meheadline1 = TEXT
temp.meheadline1.data =leveltitle:1
temp.meheadline1.wrap = &nbsp;|&nbsp;
temp.meheadline2 = TEXT
temp.meheadline2.data =leveltitle:2
temp.meheadline2.wrap = &nbsp;|&nbsp;

temp.leftmenu = HMENU
temp.leftmenu.1 = TMENU
temp.leftmenu.1 {
	expAll = 0
	wrap = <table width="150" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="clear.gif" width="1" hspace="1" height="1" vspace="3" border="0" alt="" /></td></tr> | </table>
	NO.linkWrap = {$menu.L0.fontWrap}
	NO.doNotLinkIt = {$menu.L0.noLink}
	NO.allWrap = <tr><td><img src="clear.gif" width="1" height="1" vspace="3" border="0" alt="" /><br /> | </td></tr>
}

temp.leftmenu.2 = TMENU
temp.leftmenu.2 {
	wrap = <tr><td nowrap="nowrap"> | </td></tr>
	NO {
    beforeImg =  {$menu.file.bullet}
    beforeROImg = {$menu.file.bullet_RO}
    beforeImgTagParams = hspace="2"
    RO = 
    after = <br />
    ATagBeforeWrap = 1
    linkWrap= {$menu.L1.fontWrap}
	}
}


temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template < plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_BODY
  subparts.content < styles.content.get
subparts.mheadline < temp.meheadline1
subparts.msubheadline < temp.meheadline2
 subparts.menu_1 < temp.leftmenu
marks.AKTUELL = RECORDS
marks.AKTUELL {
  tables = tt_content
  source = 35
  dontCheckPid = 1
} 
}


# 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
page.config.doctype = xhtml_trans

# 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

Jetz wenn wenn ich die Seite aufmach ist das ###AKTUELL### zwar weg, aber es wird kein Inhalt von der Seite 35 angezeigt.

Danke Mike

just2b ·

weil du leider nicht lesen kannst... da stand mal

#ID(s) der content-elemente, mit komma trennen

und nicht die IDs der Seiten!

wenn du Seiten verwenden willst?

marks.XY = CONTENT
marks.XY {
table = tt_content
select {
pidInList = ID1, ID2
orderBy = sorting
where = colPos= 0
}
}