Zum Inhalt springen

Problem bei Single-ansicht der News bei Print

Erstellt am 14. November 2006 · 2 Antworten · letzte Antwort am 14. November 2006

Tags: tt_news, Frage

panderas ·

die druckvorschau bei single-ansicht werden falsch angezeigt. anstatt die nachricht anzuzeigen zeigt es ein teil der Hauptseite an. kan mir jemand helfen??

toyde ·
panderas schrieb

kan mir jemand helfen??

Ohne den geringsten technischen Input deinerseits? - nö.

grüsse

panderas ·

also dies ist mein html haupttemplate mit markers und subparts:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
----
---- Concept, design and implementation by
---- Futurecom interactive AG
---- P.O. Box
---- 8037 Zurich
---- Switzerland
---- http://www.futurecom.ch
----
---- NMC: mma
---- NMD: http://www.moxi.ch
---- ITS: agl
----
-->
<html>
<head>
	<title>PRO HELVETIA: Schweizer Kulturstiftung</title>
	<meta name="Author" content="Futurecom interactive AG, Zurich, Switzerland, http://www.futurecom.ch">
 
	<link rel="StyleSheet" href="uploads/tf/proHelvetiaStyles_01.css" type="text/css">
</head>
<!-- ###DOCUMENT_BODY### start-->
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="uploads/tf/__js/activeobjects.js"></SCRIPT>
<div align="center">
<table style="height:100%; width:950px; background-color:#FFFFFF;" border="0">
<tr>

</tr>
<tr valign="top">
  <td>
  <!-- leftColumn -->
    <div align="center"><a href="index.php">###LOGOIMAGE###</a></div>
	<div id="leftCol" class="leftCol">
      <!-- ###MAIN_NAVIGATION### start-->
	  <div id="leftCol" class="leftCol">
	  <table width="178"><tr><td>
        <ul id="navLevel1">
		  <li><a href="emptyReference">NEWS<br />zweizeilig ok</a></li>
          <!-- subNav -->
          <ul id="navLevel2">
		    <li><a href="emptyReference">Subnavigation 2.1<br />zweizeilig ok</a></li>
            <li class="active"><a href="emptyReference">Subnavigation 2.2</a></li>
              <ul id="navLevel3">
			    <li><a href="emptyReference">Subnavigation 2.2.1</a></li>
                <li class="active"><a href="emptyReference">Subnavigation 2.2.2</a></li>
                  <ul id="navLevel4">
                    <li><a href="emptyReference">Subnavigation 2.2.2.1</a></li>
                    <li class="active"><a href="emptyReference">Subnavigation 2.2.2.2</a></li>
                    <li><a href="emptyReference">Subnavigation 2.2.2.3</a></li>
                  </ul>
                <li><a href="emptyReference">Subnavigation 2.2.3</a></li>
                <li><a href="emptyReference">Subnavigation 2.2.4</a></li>
              </ul>
            <li><a href="emptyReference">Subnavigation 2.3</a></li>
            <li><a href="emptyReference">Subnavigation 2.4</a></li>
          </ul>
          <!-- /subNav -->
        </ul>
	  </td></tr></table>
	  </div>
	  <!-- ###MAIN_NAVIGATION### stop-->
	  <table height="100%" width="178"><tr><td>&nbsp;</td></tr></table>
    </div>
	
  <!-- /leftColumn -->
  </td>
  <td>
  <!-- centerColumn -->
    <div id="centerColContent">
      <!-- utilities -->
      <table width="502" height="93">
      <tr valign="bottom">
        <td id="util" width="402" style="padding-bottom:5px;" align="left">###TOPNAVIGATION###</td>
        <td id="language" width="100" style="padding-bottom:5px;"><div align="right">###LANGUAGESWITCH###</div></td>      
      </tr>
      </table>
      <!-- /utilities -->
    
      <!-- headerImg -->
      <div id="headvisual" border="1">
	  <table>
	  <tr height="41"><!--<td align="left"><font face="Arial" size="6" style="font-sytle: bold;">###PID### / ###TITLE### / ###PAGELANGUAGEID### </font></td>-->
	  	<td>
		<!-- EMBED FLASH -->
			<!-- PARAMS Flash-Title, Width, Height, LanguageID, PID -->
			<script language="JavaScript">RenderSWF('Pro-Helvetia-Header', '502', '41', '1', '2');</script>			
			<!--
			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="502" height="41" id="dummy" align="middle">
			<param name="allowScriptAccess" value="sameDomain">
			<param name="movie" value="/uploads/tf/flash/dummy.swf?inpPID=2&inpLang=1">
			<param name="quality" value="high">
			<param name="bgcolor" value="#ffffff">
			<embed src="/uploads/tf/flash/dummy.swf?inpPID=2&inpLang=1" quality="high" bgcolor="#ffffff" width="502" height="41" name="dummy" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
			</object>
			-->
		<!-- END OF EMBED FLASH -->
	    </td>
	  </tr>
	  </table></div>
      <!-- /headerImg -->
      <div class="spacer" style="height:13px;"></div>
	   <div align="left">
	    <!-- ###CONTENT### start-->
	    <table class="maincontenttable">
	    <tr height="250" valign="top">
	    <td width="160" align="left"><div class="box">###MAIN_CONTENT_1###</div></td><td width="160" align="left"><div class="box">###MAIN_CONTENT_2###</div></td><td align="left"><div class="box">###MAIN_CONTENT_3###</div></td>
	    </tr>
	    </table>
	    <!-- ###CONTENT### stop-->
	   </div>
	   <div align="left">
	    <table class="maincontenttable">
	    <tr height="250" valign="top">
	    <!--###CONTENT_1### start--><td width="160" align="left"><div class="box"></div></td><!--###CONTENT_1### stop--><!--###CONTENT_2### start--><td width="160" align="left"><div class="box"></div></td><!--###CONTENT_2### stop-->
	    </tr>
	    </table>
	   </div>
	    <table>
	    	<tr>
					<td colspan="3"><span class="bodytext">###FOOTERTEXT###</span></td>
	    	</tr>
	    	<tr>
					<td><img src="fileadmin/images/ico_sendafriend.gif">&nbsp;<a href="#">send article</a></td>
					<td height="1" width="50"><img src="fileadmin/images/spacer_1px.gif"></td>
					<td><!--###PRINT### start--> <!--###PRINT### stop--></td>
		    	</tr>
   	  </table>
    </div>
  <!-- /centerColumn -->
  </td>
  <td>
  <!-- rightColumn -->
    <div id="rightCol">
      ###SUCHE###
      <hr />
	  <!-- 
      <div id="sideContentBox">
        <p class="boxTitle">Newsletter</p>
        <p>Subscribe to <a href="emptyReference">Newsletter</a></p>
      </div>
	  <hr />
	   -->
      
      <div id="sideContentBox">
        <p class="boxTitle">Contact in Switzerland</p>
        <p>Pro Helvetia<br />
          Arts Council of Switzerland<br />
          Hirschengraben 22<br />
          CH-8024 Z&uuml;rich <br />
          T +41 44 267 71 71<br />
          F +41 44 267 71 06<br /> 
          <a href="http://www.prohelvetia.ch" target="_blank">www.prohelvetia.ch</a><br />
          <a href="mailto:info@prohelvetia.ch">info@prohelvetia.ch</a>
        </p>
      </div>
      <hr />
      <!-- ###RContent### start-->
      <div>
        <p class="boxTitle">Annual Report</p>
        <p><a href="emptyReference">download (PDF)</a></p>
	  </div>
	  
	  <hr>
	  <!-- ###RContent### stop-->
	  <!-- ###LOCATIONS### start-->
      <div id="sideContentBox">
        <p class="boxTitle">Locations</p>
        <p>
          <a href="emptyReference">z&uuml;rich</a><br />
          <a href="emptyReference">gen&egrave;ve</a><br />
          <a href="emptyReference">paris</a><br />
          <a href="emptyReference">warszawa</a><br />
          <a href="emptyReference">cairo</a><br />
          <a href="emptyReference">cape town</a><br />
          <a href="emptyReference">new delhi</a><br />
          <br />
          <a href="emptyReference">roma, </a>
          <a href="emptyReference">milano, </a>
          <a href="emptyReference">venezia, </a>
          <a href="emptyReference">new york</a>
        </p>
      </div>
      <hr />
      <!-- ###LOCATIONS### stop-->
      <div id="sideContentBox">
        <p class="boxTitle">Pro Helvetia</p>
        <p>ul. Chocimska 3/1<br />
          00-791 Warszawa<br />
          <br />
          T: 0048 (0) 22 881 06 88<br />
          T/F: 0048 (0) 22 849 84 75<br />
          <br />
          <a href="mailto:warszawa@pro-helvetia.pl">warszawa@pro-helvetia.pl</a><br />
          <a href="http://www.pro-helvetia.pl" target="_blank">www.pro-helvetia.pl</a></p>
      </div>
      <hr />

    </div>
  <!-- /rightColumn -->
  </td>
</tr>
</table>

</div>
<!-- ###DOCUMENT_BODY### stop-->
</html>

hier ist das setup und constants der root verzeichnis.
setup:

#Sprachen
config.linkVars = L
# Standardsprache UID 0 -> Polnisch
config.sys_language_uid = 0 
config.language = pl
config.locale_all = pl_PL

[globalVar = GP:L=2]
config.sys_language_uid = 2
config.language = en
[global]

##################################
# Logo sprachabhängig einblenden #
##################################
[globalVar = GP:L<2]
page.10.marks.LOGOIMAGE = TEXT
page.10.marks.LOGOIMAGE.value = <img src="uploads/tf/img_logo_proHelvetia_sac-en.gif" width="178" height="93" alt="" border="0" />
[global]
[globalVar = GP:L=2]
page.10.marks.LOGOIMAGE = TEXT
page.10.marks.LOGOIMAGE.value = <img src="uploads/tf/img_logo_proHelvetia_sac-en.gif" width="178" height="93" alt="" border="0" />
[global]

#######################################
# Footertext einblenden auf Spashpage #
#######################################
page.10.marks.FOOTERTEXT = 
[globalVar = TSFE:id=23]
page.10.marks.FOOTERTEXT = TEXT
page.10.marks.FOOTERTEXT.value = <span style="color: #666666"><strong>Pro Helvetia</strong> - Liaison office of the Swiss Arts Concil in Poland</span>
[global]


##################################
# Text im Texteditor formatieren #
##################################
RTE.default.contentCSS = uploads/tf/proHelvetiaStyles_01.css
RTE.default.useCSS = 1


########################################
# Fallback für nicht übersetzte Seiten #
########################################
config.sys_language_mode = content_fallback
config.sys_language_overlay = hideNonTranslated

page = PAGE
page.config 
{
  xmlprologue = none 
  renderCharset = utf-8
  doctype = xhtml_trans
  xhtml_cleaning = all
  additionalHeaders = Content-Type:text/html;charset=utf-8
  index_enable = 1 
}

page.10 = CONTENT
page.10.table = tt_content

#Stylesheet
page.stylesheet = uploads/tf/proHelvetiaStyles_01.css
page { 
      typeNum = 0 
    #Haupttemplate definieren
      10 = TEMPLATE 
      10 { 
      	 template = FILE
	 template.file = uploads/tf/mainTemplate.html
	 workOnSubpart = DOCUMENT_BODY 
    	 #Platzhalter definieren
	 marks {
			  		 
	 	#Switch Language
	 	SPRACHE < tmp.SPRACHE
	 					
	 	#Parent Page ID ausgeben
	 	PID = TEXT
		PID.field = pid
		
		#Parent Page Title ausgeben
		TITLE = TEXT
		TITLE.field = title
		
		#Page Language ID ausgeben
		PAGELANGUAGEID = TEXT
		PAGELANGUAGEID.data = DB:pages_language_overlay:sys_language_uid		
		
	    	#Content Spalte 1(Links)
	    	MAIN_CONTENT_1 = CONTENT 
		MAIN_CONTENT_1 { 
	    		     table = tt_content 
	    		     		     select { 
			     			     where = colPos = 1 
			     			     orderBy = sorting 
			     			     languageField = sys_language_uid 
						    } 
		             }
		#Content Spalte 2 (Normal)
	 	MAIN_CONTENT_2 = CONTENT 
		MAIN_CONTENT_2 { 
	    		     table = tt_content 
	    		     		      select { 
			     			     where = colPos = 0 
			     			     orderBy = sorting 
			     			     languageField = sys_language_uid 
						    } 
		             } 
		#Content Spalte 3 (Rechts)
		MAIN_CONTENT_3 = CONTENT 
		MAIN_CONTENT_3 { 
	    		     table = tt_content 
	    		     		      select { 
			     			     where = colPos = 2 
			     			     orderBy = sorting 
			     			     languageField = sys_language_uid 
						    } 
		             } 
	}


#########################        
# Unterteile definieren #
#########################
subparts { 
	#Hauptnavigation
 	MAIN_NAVIGATION < tmp.HAUPTNAVI
 	tip < temp.tip
} 
tt_content.stdWrap.wrap = <div class="box">|</div>

#######################        
# RContent definieren #
#######################
subparts { 
	#RContent
 	RContent = CONTENT 
		RContent { 
			     wrap = <div> | </div>
	    		     table = tt_content 
	    		     		     select {
	    		     		     			where = colPos = 3
			     			     			orderBy = sorting 
			     			     			languageField = sys_language_uid 
						    } 
		             }
} 
#######################################
# Topnavigation ausgeben aus PHP-File #
#######################################
marks.TOPNAVIGATION = PHP_SCRIPT_INT
marks.TOPNAVIGATION {
	file = uploads/media/topnavigation.inc.php
	file.data = GPvar:L
}

###########################################
# Language Switcher ausgeben aus PHP-File #
###########################################
marks.LANGUAGESWITCH = PHP_SCRIPT_INT
marks.LANGUAGESWITCH {
	file = uploads/media/languageswitch.inc.php
	file.data = GPvar:L
}

############################################
# Tip-A-Friend konfigurieren und einbinden #
############################################
marks.TIPAFRIEND = COA
marks.TIPAFRIEND {
	[TSFE : sys_language_uid = 2]
	wrap = <a href="index.php?id=44|">Send this article</a>
	1 = TEXT
	1.data = TSFE : id
	1.wrap = &tipUrl=http://www.pro-helvetia.pl?id=|
}

#Frontend Admin Panel
config {
  admPanel = 1
}
config.sys_language_overlay = 1



 



































##### DEVELOPMENT ZONE

#suche konfigurieren -- ext: macina_searchbox + indexed_search installieren
plugin.tx_macinasearchbox_pi1.pidSearchpage = 43
plugin.tx_macinasearchbox_pi1.templateFile = uploads/tf/search_template.html
#indexierung aktivieren, damit indexed search funktioniert
page.config.index_enable = 1
#auch für doc, rtf etc
page.config.index_externals = 1

#suche einbinden -- ext: macina_searchbox + indexed_search installieren
# Suchfeld einblenden
marks{
	SUCHE < plugin.tx_macinasearchbox_pi1
	SUCHE {
		pidSearchpage = 43
       	}
} 


tt_content.textpic.20.rendering.dl.oneImageStdWrap.wrap = = <div style="padding-top: 30px;">|</div> 
plugin.tt_news.wrap1.wrap = |
plugin.tt_news.wrap2.wrap = |

constants:

#PAGE Content Styles
content.stylesheet.file = 
styles.content.imgtext.maxW = 158

plugin.alt.print.file.template=fileadmin/templates/print.html 

#Content Header
styles.header.gfx1.file.fontFile = B-ProHelvetia-Bold*.ttf
styles.header.gfx1.fontSize = 30
styles.header.gfx1.fontColor = #E682B4
styles.header.gfx1.niceText = 1

#Einbinden Indexsuche für Suchmaschine und Template für Suchresultat/ mmr
plugin.tx_indexedsearch {
	search.rootPidList = 23
	show.rules = 0
}

content.defaultHeaderType = 3
content.wrap.header1 = <font color="#e682b4"> |</font>
content.wrap.header = <font color="#cb0066"> |</font><br />

styles.content.imgtext.maxWInText = 158

#Tip A Friend Konstanten
plugin.tipafriend { 
    file.templateFile = EXT:tipafriend/pi/tipafriend_template.tmpl 
    PIDtipForm = 44  
    htmlMail = 0 
} 
PAGE_TARGET = _self

jetzt das setup und constants der news-seite:
setup:

page { 
      10 = TEMPLATE 
      10 {
	subparts { 
		#Content
 		CONTENT= CONTENT 
		CONTENT { 
			    table = tt_content
	    		     		     select {
	    		     		     	     where = colPos = 0
			     			     orderBy = sorting 
			     			     languageField = sys_language_uid 
						    } 
		             }
} 
plugin.tt_news.templateFile = fileadmin/templates/news_template.html
plugin.tt_news.wrap3.wrap = |

constants:

#Plugin News
plugin.tt_news.archiveTypoLink.parameter = 31
plugin.tt_news.backPid = 24
plugin.tt_news.content_stdWrap.wrap = | 
plugin.tt_news.color1 = #FFFFFF
plugin.tt_news.color2 = #FFFFFF
plugin.tt_news.color3 = #FFFFFF
plugin.tt_news.color4 = #FFFFFF
plugin.tt_news.displaySingle.title_stdWrap.wrap = <div><font face="arial" color="#ff69b4"> | </div>
plugin.tt_news.displaySingle.date_stdWrap.strftime = %d.%m.%y
plugin.tt_news.displaySingle.subheader_stdWrap.wrap = |
plugin.tt_news.displaySingle.caption_stdWrap.wrap = | 
plugin.tt_news.file.templateFile= fileadmin/templates/news_template.html
plugin.tt_news.latestLimit = 5
plugin.tt_news.latestMaxW = 158
plugin.tt_news.listMaxW = 158
plugin.tt_news.latestMaxH = 100
plugin.tt_news.listMaxH = 100
plugin.tt_news.limit = 5
plugin.tt_news.pid_list = 19
plugin.tt_news.singlePid = 38
plugin.tt_news.wrap.header = <div><font face="arial" color="#ff69b4"><b> | </b></font></div>
plugin.tt_news.wrap1 = | 
plugin.tt_news.wrap2 = | 
plugin.tt_news.wrap3 = | 
plugin.tt_news.title_stdWrap.wrap = |