phpbuddy.eu
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 03.11.2007, 14:26   #1
TP-Junior
 
Registriert seit: Sep 2007
Ort: FL
ScubaBen macht alles soweit korrekt

Kleines Problem, großes Kopfzerbrechen!


MoinMoin!

Ich habe ein HTML Template mittels Autoparser in TS integriert. Nun habe ich das Problem, dass die Seite doppelt angezeigt wird. Oben das statische Seitendesign, unten die dynamische Seite. Ich habe schon ALLES überprüft. Ich finde die Lösung nicht. Wer kann helfen?

Vielen Dank im Voraus!

Ben
ScubaBen ist offline   Mit Zitat antworten


Alt 03.11.2007, 15:25   #2
TP-Special Mod
 
Benutzerbild von steffenk
 
Registriert seit: Feb 2005
Ort: Haan / NRW
steffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine User
ohne Dein Template zu sehen kann man nix dazu sagen
__________________

Typo3 · MySQLDumper · dislabs
·
manche Mühlen mahlen schneller ...
"Ich habe Rücken"
Horst Schlämmer
steffenk ist offline   Mit Zitat antworten
Alt 03.11.2007, 15:33   #3
TP-Junior
 
Registriert seit: Sep 2007
Ort: FL
ScubaBen macht alles soweit korrekt
Hi Stefan,
hier der Code.
Vielen Dank für die Hilfe

Code:
#configuring the auto parser for main template:
plugin.tx_automaketemplate_pi1 {
	#read template file:
	content = FILE
	content.file = fileadmin/template/mmv4.html
	
	#Here we define which element in the HTML that
	#should be wrapped in the 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
	LI.all = 1
      }
      
	#Prefix all relative paths with this value:
	relPathPrefix = fileadmin/template/

}

### Menü ###
temp.menu_frame = HMENU
temp.menu_frame {
  ### Erste Ebene ###
    1 = TMENU
    1 {
      wrap = <ul class="menu">|</ul>
      expAll = 1
      NO.wrapItemAndSub = <li onmouseover="show(this)" onmouseout="hide(this)">|</li>

      ACT < .NO
      ACT = 1
      ACT.ATagParams = class="active"
    }

    ### Zweite Ebene ###
    2 = TMENU
    2 {
      wrap = <ul onmouseover="show(this)" onmouseout="hide(this)">|</ul>
      NO.allWrap = <li>|</li>
    }
}
   

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
	#Feeding the content to the Auto-parser for thhe TEMPLAT CObject
	template =< plugin.tx_automaketemplate_pi1
	# Select only the docuiment between the body tags
	workOnSubpart = DOCUMENT_BODY
	
	# subsitute the ###menue_1### with some sample content
	subparts.menu_frame < temp.menu_frame
	
			
	# Substitute the ###content### subpart with some sample content:
	subparts.content < styles.content.get
	subparts.left < styles.content.getLeft
	
	
}

# Main TEMPLATE cObject for HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
	# Feeding the content from the Auto-parser to the TEMPLAT 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

page.headerData.10 < temp.headTemplate

# DIESE SEITE BEFINDET SICH IM AUFBAU Verstecken des Templates
#page = PAGE
#page.10 = TEXT
#page.10.value = Diese Seite befindet sich im Aufbau.
HTML-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<link rel="stylesheet" type="text/css" href="styles/css.css" media="screen" />
<script type="text/javascript">

    //<![CDATA[

  function show(element){

           element.className += "hover";

   }

 function hide(element){

           element.className = element.className = "";

     }

    //]]>

</script>
</head>

<body>

<!-- shadow open -->
<div id="wrapper1">
<div class="shadow5">
<div class="shadow4">
<div class="shadow3">
<div class="shadow2">
<div class="shadow1">






<div id="header">
	<img  />
</div>

<div id="menu_frame">
<ul class="menu">
  <li ><a href="#">Ebene1 Punkt1</a></li>
  <li onmouseover="show(this)" onmouseout="hide(this)" >
    <a href="#">Ebene1 Punkt2</a>
    <ul class="submenu" onmouseover="show(this)" onmouseout="hide(this)" >
      <li><a href="#">Ebene2 Punkt1</a></li>
      <li><a href="#">Ebene2 Punkt2</a></li>
      <li class="active"><a href="#">Ebene2 Punkt3</a></li>
    </ul>
  </li>
  <li><a href="#">Ebene1 Punkt3</a></li>
  <li><a href="#">Ebene1 Punkt4</a></li>
</ul>
</div>

<div id="wrapper2">	
<div id="left" >
	<h1>Lorem ipsum</h1> dolor sit amet, consectetuer adipiscing elit. Donec nec tortor. Vestibulum porta risus quis metus. Cras ut purus. Donec sit amet nisl a turpis venenatis tempus. Morbi blandit nunc eu justo. Suspendisse justo odio, faucibus at, ornare ut, dig
</div>
	
<div id="content" >
	<h1>Lorem ipsum</h1>
	
</div>
	
<div id="footer">
	
</div>

</div>


<!-- shadow close -->
</div>
</div>
</div>
</div>
</div>
</div>

</body>
</html>
ScubaBen ist offline   Mit Zitat antworten
Alt 03.11.2007, 19:42   #4
TP-Junior
 
Registriert seit: Sep 2007
Ort: FL
ScubaBen macht alles soweit korrekt

Ergänzung: dies ist der Quelltext der nachher ausgegeben wird


Was ich nicht verstehe ist, woher er die Javascript Zeile (rot ) nimmt. und warum er das ganze nochmal kopiert.

Hatte schonmal jemand so nen Prob? Liegt das an Typo3 oder an den Codes?

HTML-Code:
<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- 
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
-->

	<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_e99aac0be0.css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><!--###DOCUMENT_HEADER### begin -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" type="text/css" href="fileadmin/template/styles/css.css" media="screen" />
<script type="text/javascript">

    //<![CDATA[

  function show(element){

           element.className += "hover";

   }

 function hide(element){

           element.className = element.className = "";

     }

    //]]>

</script>
<!--###DOCUMENT_HEADER### end --></head>

<body><!--###DOCUMENT_BODY### begin -->

<!-- shadow open -->
<div id="wrapper1">
<div class="shadow5">
<div class="shadow4">
<div class="shadow3">
<div class="shadow2">
<div class="shadow1">





<div id="header">
	<img />
</div>

<div id="menu_frame">
<ul class="menu">
  <li ><a href="fileadmin/template/#">Ebene1 Punkt1</a></li>
  <li onmouseover="show(this)" onmouseout="hide(this)" >
    <a ">Ebene1 Punkt2</a>
    <ul class="submenu" onmouseover="show(this)" onmouseout="hide(this)" >

      <li><a href="fileadmin/template/#">Ebene2 Punkt1</a></li>
      <li><a href="fileadmin/template/#">Ebene2 Punkt2</a></li>
      <li class="active"><a href="fileadmin/template/#">Ebene2 Punkt3</a></li>
    </ul>
  </li>
  <li><a href="fileadmin/template/#">Ebene1 Punkt3</a></li>
  <li><a href="fileadmin/template/#">Ebene1 Punkt4</a></li>

</ul>
</div>

<div id="wrapper2">	
<div id="left" >
	<h1>Lorem ipsum</h1> dolor sit amet, consectetuer adipiscing elit. Donec nec tortor. Vestibulum porta risus quis metus. Cras ut purus. Donec sit amet nisl a turpis venenatis tempus. Morbi blandit nunc eu justo. Suspendisse justo odio, faucibus at, ornare ut, dig
</div>
	
<div id="content" >
	<h1>Lorem ipsum</h1>
	<p> dolor sit amet, consectetuer adipiscing elit. Donec nec tortor. Vestibulum porta risus quis metus. Cras ut purus. Donec sit amet nisl a turpis venenatis tempus. Morbi blandit nunc eu justo. Suspendisse justo odio, faucibus at, ornare ut, dignissim eu, sapien. Fusce sed orci eget est aliquet congue. Vivamus eu augue tristique libero elementum mollis. Vestibulum at dolor. Suspendisse elit metus, sollicitudin id, tempor a, imperdiet at, nisl. Donec ut libero. Donec auctor tristique pede. Praesent augue turpis, blandit non, tempor quis, condimentum nec, enim. Etiam sit amet quam. Donec scelerisque, est et egestas volutpat, libero arcu cursus metus, ac ornare enim magna sit amet elit. Morbi nulla.</p>

</div>
	
<div id="footer">
	
</div>

</div>


<!-- shadow close -->

</div>
</div>
</div>
</div>
</div>
</div>

<!--###DOCUMENT_BODY### end --></body>
</html>

[color="DarkRed"]<link rel="schema.dc" href="http://purl.org/metadata/dublin_core_elements" />

	<title>Home</title>
	<meta name="generator" content="TYPO3 4.1 CMS" />

	<script type="text/javascript" src="typo3temp/javascript_757c080409.js"></script>


[/color]</head>
<body>


<!-- shadow open -->
<div id="wrapper1">
<div class="shadow5">
<div class="shadow4">
<div class="shadow3">
<div class="shadow2">
<div class="shadow1">





<div id="header">
	<img />
</div>

<div id="menu_frame">
<ul class="menu">
  <li ><a href="fileadmin/template/#">Ebene1 Punkt1</a></li>
  <li onmouseover="show(this)" onmouseout="hide(this)" >

    <a href="fileadmin/template/#">Ebene1 Punkt2</a>
    <ul class="submenu" onmouseover="show(this)" onmouseout="hide(this)" >
      <li><a href="fileadmin/template/#">Ebene2 Punkt1</a></li>
      <li><a href="fileadmin/template/#">Ebene2 Punkt2</a></li>
      <li class="active"><a href="fileadmin/template/#">Ebene2 Punkt3</a></li>
    </ul>
  </li>

  <li><a href="fileadmin/template/#">Ebene1 Punkt3</a></li>
  <li><a href="fileadmin/template/#">Ebene1 Punkt4</a></li>
</ul>
</div>

<div id="wrapper2">	
<div id="left" >
	<h1>Lorem ipsum</h1> dolor sit amet, consectetuer adipiscing elit. Donec nec tortor. Vestibulum porta risus quis metus. Cras ut purus. Donec sit amet nisl a turpis venenatis tempus. Morbi blandit nunc eu justo. Suspendisse justo odio, faucibus at, ornare ut, dig
</div>
	

<div id="content" >
	<h1>Lorem ipsum</h1>
	<p> dolor sit amet, consectetuer adipiscing elit. Donec nec tortor. Vestibulum porta risus quis metus. Cras ut purus. Donec sit amet nisl a turpis venenatis tempus. Morbi blandit nunc eu justo. Suspendisse justo odio, faucibus at, ornare ut, dignissim eu, sapien. Fusce sed orci eget est aliquet congue. Vivamus eu augue tristique libero elementum mollis. Vestibulum at dolor. Suspendisse elit metus, sollicitudin id, tempor a, imperdiet at, nisl. Donec ut libero. Donec auctor tristique pede. Praesent augue turpis, blandit non, tempor quis, condimentum nec, enim. Etiam sit amet quam. Donec scelerisque, est et egestas volutpat, libero arcu cursus metus, ac ornare enim magna sit amet elit. Morbi nulla.</p>
</div>
	
<div id="footer">
	

</div>

</div>


<!-- shadow close -->
</div>
</div>
</div>
</div>
</div>
</div>


</body>
</html>
ScubaBen ist offline   Mit Zitat antworten
Alt 04.11.2007, 11:11   #5
TP-Special Mod
 
Benutzerbild von steffenk
 
Registriert seit: Feb 2005
Ort: Haan / NRW
steffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine User
In Deinem Template sind die subparts DOCUMENT_HEADER und DOCUMENT_BODY nicht drin, das wird der Grund sein.
__________________

Typo3 · MySQLDumper · dislabs
·
manche Mühlen mahlen schneller ...
"Ich habe Rücken"
Horst Schlämmer
steffenk ist offline   Mit Zitat antworten
Alt 04.11.2007, 11:20   #6
TP-Junior
 
Registriert seit: Sep 2007
Ort: FL
ScubaBen macht alles soweit korrekt

Problem gelöst


Hi Steffen,
vielen Dank für die Hilfe. Alles was es war, war ein Schreibfehler. Mal wieder ein workonSubparts das S nicht groß geschrieben - und damit han ich mich nun 2 Tage rumgeschlagen!
ScubaBen ist offline   Mit Zitat antworten
Alt 04.11.2007, 11:27   #7
TP-Special Mod
 
Benutzerbild von steffenk
 
Registriert seit: Feb 2005
Ort: Haan / NRW
steffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine Usersteffenk lebt für das TP und seine User
na dann hast Du ja auch den passenden Threadtitel gewählt
__________________

Typo3 · MySQLDumper · dislabs
·
manche Mühlen mahlen schneller ...
"Ich habe Rücken"
Horst Schlämmer
steffenk ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Typo3
Kleines Problem, großes Kopfzerbrechen! Kleines Problem, großes Kopfzerbrechen!
« Ext 'seminars' Anzeige des (Veranstaltungs)-Ortes | Schreibrechte fürs temp Verzeichniss vergeben!! »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:26 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67