Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Print-Link einrichten?
#1
Hallo zusammen Smile

Danke fürs reinschauen Smile

Ich würde gerne auf meine Seite einen Print-Link einrichten.

folgenden Code habe ich in mein Typo-Script eingebaut:

PHP-Code:
#################################
    # Indexed Search aktivieren
    #################################
    
config.index_enable 1
     
     
    
# RealURL
    #config.simulateStaticDocuments = 0
    
config.baseURL http://www.managingcare.de/
    #config.tx_realurl_enable = 1
    #config.uniqueLinkVars = 1
    #config.linkVars = L

   
page {
   
meta {
    
viewport width=device-width
    apple
-mobile-web-app-capable no
    apple
-mobile-web-app-status-bar-style black

    keywords
.field keywords
    keywords
.ifEmpty (
      {
$meta.keywords}
    )
    
description.field description
    description
.ifEmpty (
      {
$meta.description}
    )
    
author.field author
    author
.ifEmpty (
      {
$meta.author}
    )
    
copyright.field copyright
    copyright
.ifEmpty (
      {
$meta.copyright}
    )
    
robots index,follow
        
    google
-site-verification = {$verify.google.webmastertools}
    
y_key = {$verify.yahoo.validation}
     }
    }

     
    
#E-Mail Antispam
    
config.spamProtectEmailAddresses 1
    config
.spamProtectEmailAddresses_atSubst = (at)

    
config {
    
#Kommentare ausblenden
    
disablePrefixComment 1
    xhtml_cleaning 
all
    index_enable 
1
    linkVars 
L
    sys_language_uid 
0
    language 
de
    locale_all 
de_DE.utf8
    htmlTag_langKey 
de
    metaCharset 
utf-8
    
#renderCharset = utf-8
    
additionalHeaders Content-Type:text/html;charset=utf-8
    extTarget
=_blank
    doctype 
xhtml_trans
    
}

// CoolURI aktivieren
    
config.tx_cooluri_enable 1
    config
.redirectOldLinksToNew 1

    plugin
.tt_news {
    
_LOCAL_LANG.de.more mehr...
    
_LOCAL_LANG.de.backToList « Zurück zu: %s
    displayList
.age_stdWrap.age MinutenStundenTageJahr(e)
    
displaySingle.age_stdWrap.age MinutenStundenTageJahr(e)
    }
     
    
plugin.tt_news.excludeAlreadyDisplayedNews 0
    plugin
.tt_news._LOCAL_LANG.de.pi_list_browseresults_displays Treffer ###FROM### bis ###TO### von ###OUT_OF###  
    
plugin.tt_news.displaySingle.content_stdWrap.wrap >
    
plugin.tt_news.displaySingle.subheader_stdWrap.wrap = |
    
plugin.tt_news.general_stdWrap >
    
plugin.tt_news.displaySingle.content_stdWrap.parseFunc lib.parseFunc_RTE
    
#csc-header entfernen
    
lib.stdheader.stdWrap.dataWrap >
     
    
#Überschriften ohne Zusätze
    
lib.stdheader.2.headerStyle >
    
lib.stdheader.3.headerClass >
     
    
# class="bodytext" bei RTE abstellen
    
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
     
    
# Ummantelung mit <p> bei folgenden Tags verhindern
    
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList citedivpprehrh1h2h3h4h5h6,table,tr,td
     
    
#p bei Tabellenzellen entfernen
    #lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.removeTags = p
     
    #Klassen in Tabellen zulassen
    
lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.c​lass.list >
    
   
page.shortcutIcon fileadmin/template/img/favicon.ico
     
    page 
PAGE
    page 
{
      
    
config.disablePrefixComment 1
    typeNum 
0
    bodyTag 
=
     
    
includeCSS {
    
file1 fileadmin/template/style.css
    file2 
fileadmin/css/style.css
    file1
.media screen
    
}
    
includeJS.file10 fileadmin/template/js/jquery.min.js
     
    includeJSFooter
{
    
file11 fileadmin/template/js/animated-menu.js
    file12 
fileadmin/template/js/general.js
    file13 
fileadmin/template/js/jquery.easing.1.3.js
    
}
     
     
    
bodyTagCObject TEXT
    bodyTagCObject
.field uid
    bodyTagCObject
.wrap = <body id="page|">
     
     
    
10 TEMPLATE
    10.template 
FILE
    10.template
.file fileadmin/template/template.html
    10.workOnSubpart 
DOKUMENT
    10.marks 
{
     
    
LOGO TEXT
    LOGO
.value = <a href="/" title="Home"><img src="fileadmin/template/img/logo.png"></a>
      
     
    
NAVI HMENU
    NAVI 
{
    
special directory
    special
.value 1
    1 
TMENU
    1 
{
    
wrap = <ul class="sf-menu">|</ul>
    
noBlur 1
    expAll 
1
    NO 
1
    NO
.before.dataWrap = <li id="pageUid_{field:uid}"> |
    
NO.wrapItemAndSub = |</li>
    
NO.ATagTitle.field title // nav_title
    
ACT < .NO
    ACT 
1
    ACT
.ATagParams = class="active"
    
}
    
.1
    2 
{
    
noBlur 0
    
}
    
.2
    
}
     
    
CONTENT CONTENT
    CONTENT 
{
    
table tt_content
    select
.orderBy sorting
    select
.languageField sys_language_uid
    select
.where colPos 0
    renderObj 
tt_content
    renderObj
.stdWrap.wrap = <div id="con-mitte-left"><!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--></div>
    }
     
    
RIGHT CONTENT
    RIGHT 
{
    
table tt_content
    slide 
= -1
    select
.orderBy sorting
    select
.languageField sys_language_uid
    select
.where colPos 2
    renderObj 
tt_content
    renderObj
.stdWrap.wrap = <div id="con-mitte-right"> | </div>
    }
     
    
HEADERBILD CONTENT
    HEADERBILD 
{
    
table tt_content
    slide 
= -1
    select
.orderBy sorting
    select
.languageField sys_language_uid
    select
.where colPos 1
    renderObj 
tt_content
    renderObj
.stdWrap.wrap = <div id="con-headerbild"> | </div>
    }
      
#Druckfunktion
temp.print-link COA
temp
.print-link {
  
10 TEXT
  10.value 
Seite drucken
  stdWrap
.wrap = |
  
stdWrap.typolinkno_cache 1
  stdWrap
.typolink.target = print
  
stdWrap.typolink.ATagParams target _top
  stdWrap
.typolink.parameter.cObject COA
  stdWrap
.typolink.parameter.cObject {

        
TEXT
        5.data 
page:uid
        5.wrap 
index.php?id=|
        
5.required 1

        10 
TEXT
        10.value 
= &amp;amp;amp;no_cache=1

        20 
TEXT
        20.data 
GP:L
        20.wrap 
= &amp;amp;amp;L=|
        
20.required 1

        30 
TEXT
        30.data 
GP:tx_ttnews backPid
        30.wrap 
= &amp;amp;amp;tx_ttnews[backPid]=|
        
30.required 1

        40 
TEXT
        40.data 
GP:tx_ttnews tt_news
        40.wrap 
= &amp;amp;amp;tx_ttnews[tt_news]=|
        
40.required 1

        50 
TEXT
        50.data 
GP:cHash
        50.wrap 
= &amp;amp;amp;cHash=|
        
50.required 1

        60 
TEXT
        60.value 
= &amp;amp;amp;type=98
    
}
}

#Drucklink      
print = PAGE
print {
  
typeNum 98
  bodyTag 
= <body onload="javascript:window.print()">
  
##disable typo3 index
  
config.index_enable 0

  
##disable google index
  
headerData.123 TEXT
  headerData.123
.value = <meta name="robots" content="noindex, nofollow" />

  
includeCSS.fileDefault fileadmin/templates/css/print.css
  10 
TEMPLATE
  10 
{
      
template FILE
      template
.file fileadmin/templates/print.tmpl
      workOnSubpart 
DOCUMENT_BODY

      marks 
{
        
CONTENT styles.content.get
      
}
   }
}
     
FOOTER CONTENT
FOOTER 
{
  
table pages
  select 
{
    
pidInList 146
  
}
  
renderObj = CASE
  
renderObj {
    
key.field doktype
 
    4 
TEXT
    4 
{
      
field title
      typolink
.parameter.field shortcut
      typolink
.title.field title
      wrap 
= <div class="partner">|</div>
    }
 
    
COA
    3 
{
 
      
10 IMAGE
      10 
{
        
file {
          
maxW 150
          maxH 
150
 
          import 
uploads/media/
          
import {
            
field media
            listNum 
0
          
}
        }
        
altText.field title
        params 
= class="normal"
      
}
 
      
20 .10
      20.file
.import.listNum 0
      20.params 
= class="hover"
 
      
stdWrap {
        
wrap = <div class="partner">|</div>
        
ifEmpty.cObject TEXT
        ifEmpty
.cObject {
          
field title
        
}
        
typolink.parameter.field url
        typolink
.title.field title
      
}
 
    }
  }
}

     
    
HEADERNAVI HMENU
    HEADERNAVI 
{
    
special = list
    
special.value 104,280,7,11,282
    1 
GMENU
    1.noBlur 
1
    1.wrap 
= |
    
1.NO 1
    1.NO
.ATagTitle.field title
    1.NO 
{
    
altImgResource.import uploads/media/
    
altImgResource.import.field media
    altImgResource
.import.listNum 0
    
}
    
1.RO .1.NO
    1.RO 
1
    1.RO
.altImgResource.import.listNum 1
    
}
     
    
LOGTEXT COA_INT
    LOGOUT 
COA_INT
    LOGIN 
COA_INT
    
}
    }
     
    
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang 0
    config
.index_externals (z.Bfür PDF Files)
    
config.sys_language_uid 0
    config
.language de
    config
.index_externals 1
     
    
# Anzahl der anzuzeigenden Resultate pro Seite
    
plugin.tx_indexedsearch._DEFAULT_PI_VARS.results 10
    plugin
.tx_indexedsearch {
    
# ID der obersten Seite
    
search.rootPidList 1
    show
.rules 0
    show
.advancedSearchLink 1
    show
.L1sections 0
    templateFile 
fileadmin/template/indexed_search.tmpl
    _DEFAULT_PI_VARS
.lang 0
    browseBoxWrap 
= <div class="browsebox">|</div>
    
pageWrap = <span>|</span>
    }
     
     
     
    [
loginUser = *]
    
page.10.marks.LOGOUT {
    
20 TEXT
    20.value 
Kunden-Logout
    20.typolink
.parameter.data TSFE:id
    20.typolink
.additionalParams = &logintype=logout
    20.typolink
.title Abmelden
    
}
    [global]
     
     
    [
loginUser = *]
    
page.10.marks.LOGTEXT {
    
10 TEXT
    10.data 
TSFE:fe_user|user|username
    10.required 
1
    10.wrap 
Sie sind eingeloggt als:&nbsp;  |
    }
    [global]
     
     
    
page.10.marks.LOGIN {
    
30 COA
    30 
{
    
10 TEXT
    10.wrap 
= <a href="#" id="loginButton" title="Anmelden" ><span>|</span></a>
    
10.value Kunden-Login
    20 
COA
    20 
{
    
wrap = <div id="loginBox"> | </div>
    
10 plugin.tx_felogin_pi1
    10 
{
    
feloginBaseURL xxx
    storagePid 
132
    templateFile 
fileadmin/template/felogin/felogin_standard.html
    showForgotPasswordLink 
0
    noSuccessMessageAfterLogin 
0
    dateFormat 
d.m.Y
     
    redirectMode 
login
    
#_CSS_DEFAULT_STYLE >
    
}
    }
    }
    }
     
    [
loginUser = *]
    
page.10.marks.LOGIN.30 >
    [global]
     
     
    [
globalVar TSFE:id 1]
    
page.includeJS.file81 fileadmin/template/js/general-start.js
    
[global]
     
    [
globalVar GP:tx_ttnews|tt_news 0]
    
page.meta.description >
    
page.meta.description TEXT
    page
.meta.description.data register:newsSubheader

    page
.meta.keywords >
    
page.meta.keywords TEXT
    page
.meta.keywords.data register:newsKeywords
    
[global]

    
####
    # Condition for layout
    #####
     
    
[globalVar TSFE:page|layout 1]
    
page.10.template.file fileadmin/template/template2.html
    
[global]
     
     
    [
globalVar=TSFE:page|layout=2]
    
page.10.template.file fileadmin/template/temp-start.html
     
    
[global]
     
     
    [
browser msie]
    
page.includeCSS.file90 fileadmin/template/ie.css
    
[GLOBAL] 

#Druckfunktion, und Drucklink

Leider, weiss ich jetzt nicht wie der "Marker" heissen soll, mit dem ich das ganze ansprechen kann in meiner HTML.

So sieht meine HTML aus.

Code:
<!-- ###DOKUMENT### begin -->
    <script type="text/javascript" src="fileadmin/template/js/hoverIntent.js"></script>
    <script type="text/javascript" src="fileadmin/template/js/superfish.js"></script>
    <script type="text/javascript" src="fileadmin/template/js/supersubs.js"></script>
    <script type="text/javascript" src="fileadmin/template/js/login.js"></script>
    <script type="text/javascript">
    // initialise plugins
    $(document).ready(function () {
    $("ul.sf-menu").supersubs({
    minWidth: 11, // minimum width of sub-menus in em units
    maxWidth: 27, // maximum width of sub-menus in em units
    extraWidth:1 // extra width can ensure lines don't sometimes turn over
    // due to slight rounding differences and font-family
    }).superfish({
    animation:{opacity:'toggle', height:'show', width:'show'},
    speed: 'fast'
    }); // call supersubs first, then superfish, so that subs are
    // not display:none when measuring. Call before initialising
    // containing tabs for same reason.
    });
    
         $(window).load(function() {
    $("#navigation a").each(function(){
    $(this).attr("title",'');
    });
    });
    
    </script>
    <div id="center">
    <div id="logo">###LOGO###</div>
    <div class="login">
    ###LOGIN###
    </div>
    <div class="logout">
    ###LOGOUT###
    </div>
    <div class="logtext">
    ###LOGTEXT###
    </div>
    <div id="head">
    </div>
    <div id="navigation">###NAVI###</div>
    <div id="headerbild">###HEADERBILD###</div>
    <div id="suchform">
    <form method="post" action="/suche/" id="search">
    <input type="text" size="10" title="" value="" name="tx_indexedsearch[sword]" class="searchbox" placeholder="Suche..." />
    <input type="hidden" value="1" name="tx_indexedsearch[type]" />
    <input type="hidden" name="tx_indexedsearch[lang]" value="0" />
    <input type="hidden" value="1" name="no_cache" />
    </form>
    </div>
    <div style="clear:both;"></div>
    <div id="headernavi">###HEADERNAVI###</div>
    <div id="content">
    <div id="con-left-right">
    <div id="con-left">###CONTENT###</div>
    <div id="con-right">###RIGHT###</div>
    </div>
    <div id="footer">
    ###FOOTER###<br style="clear:both;" />
    </div>
    </div>
    </div>
    </div>
    <!-- ###DOKUMENT### end

Was ich noch anlegen müsste ist die print.css und das Template.

Würde mich freuen, wenn mir jemand ein wenig unter die Arme greifen könnte. Vielen Dank an euch.
Zitieren
#2
nenne "temp.print-link" in "PRINTLINK" um und füge den Marker ###PRINTLINK### an die richtige stelle ein.

btw. um Parameter zur übernehmen gibt es in der typolink Funktion ein Parameter "addQueryString"
MfG René
Systemadministrator, Webentwickler

pantanet.de - pantamedia.com - gosna.de

Wishlist
Zitieren
#3
Nice Smile danke Renè Smile
Zitieren
#4
Ok habs mal eingebaut, aber leider kommt nichts wenn ich den Link anklicke?
habe auch static.templates installiert. Und Plugin.98 Smile
Woran kann das liegen Sad?
Zitieren
#5
Drück ab und zu mal die TAB Taste in dem T3Editor... hilft ungemein wenn der Code vernünftig formatiert ist. Das PRINT Page Objekt muss nämlich nicht zu den Markern sondern in die unterste Ebene des Typoscript, ich habe dir das mal vernünftig formatiert und die Kurzversion des Drucklinks umgesetzt:

Code:
#################################
# Indexed Search aktivieren
#################################
config.index_enable = 1


# RealURL
#config.simulateStaticDocuments = 0
config.baseURL = http://www.managingcare.de/
#config.tx_realurl_enable = 1
#config.uniqueLinkVars = 1
#config.linkVars = L

page.meta {
  viewport = width=device-width
  apple-mobile-web-app-capable = no
  apple-mobile-web-app-status-bar-style = black
  
  keywords = {$meta.keywords}
  keywords.override.field = keywords
  description = {$meta.description}
  description.override.field = description
  author = {$meta.author}
  author.override.field = author
  copyright = {$meta.copyright}
  copyright.override.field = copyright
  robots = index,follow
  
  google-site-verification = {$verify.google.webmastertools}
  y_key = {$verify.yahoo.validation}
}


#E-Mail Antispam
config.spamProtectEmailAddresses = 1
config.spamProtectEmailAddresses_atSubst = (at)

config {
  #Kommentare ausblenden
  disablePrefixComment = 1
  xhtml_cleaning = all
  index_enable = 1
  linkVars = L
  sys_language_uid = 0
  language = de
  locale_all = de_DE.utf8
  htmlTag_langKey = de
  metaCharset = utf-8
  #renderCharset = utf-8
  additionalHeaders = Content-Type:text/html;charset=utf-8
  extTarget=_blank
  doctype = xhtml_trans
}

// CoolURI aktivieren
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1

plugin.tt_news {
  _LOCAL_LANG.de.more = mehr...
  _LOCAL_LANG.de.backToList = « Zurück zu: %s
  displayList.age_stdWrap.age = Minuten| Stunden| Tage| Jahr(e)
  displaySingle.age_stdWrap.age = Minuten| Stunden| Tage| Jahr(e)
}

plugin.tt_news.excludeAlreadyDisplayedNews = 0
plugin.tt_news._LOCAL_LANG.de.pi_list_browseresults_displays = Treffer ###FROM### bis ###TO### von ###OUT_OF###
plugin.tt_news.displaySingle.content_stdWrap.wrap >
plugin.tt_news.displaySingle.subheader_stdWrap.wrap = |
plugin.tt_news.general_stdWrap >
plugin.tt_news.displaySingle.content_stdWrap.parseFunc < lib.parseFunc_RTE
#csc-header entfernen
lib.stdheader.stdWrap.dataWrap >

#Überschriften ohne Zusätze
lib.stdheader.2.headerStyle >
lib.stdheader.3.headerClass >

# class="bodytext" bei RTE abstellen
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >

# Ummantelung mit <p> bei folgenden Tags verhindern
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList = cite, div, p, pre, hr, h1, h2, h3, h4, h5, h6,table,tr,td

#p bei Tabellenzellen entfernen
#lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.removeTags = p

#Klassen in Tabellen zulassen
lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list >

page.shortcutIcon = fileadmin/template/img/favicon.ico

page = PAGE
page {
  
  config.disablePrefixComment = 1
  typeNum = 0
  bodyTag =
  
  includeCSS {
    file1 = fileadmin/template/style.css
    file2 = fileadmin/css/style.css
    file1.media = screen
  }
  includeJS.file10 = fileadmin/template/js/jquery.min.js
  
  includeJSFooter{
    file11 = fileadmin/template/js/animated-menu.js
    file12 = fileadmin/template/js/general.js
    file13 = fileadmin/template/js/jquery.easing.1.3.js
  }
  
  bodyTagCObject = TEXT
  bodyTagCObject.field = uid
  bodyTagCObject.wrap = <body id="page|">
  
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/template/template.html
  10.workOnSubpart = DOKUMENT
  10.marks {
    
    LOGO = TEXT
    LOGO.value = <a href="/" title="Home"><img src="fileadmin/template/img/logo.png"></a>
    
    NAVI = HMENU
    NAVI {
      special = directory
      special.value = 1
      1 = TMENU
      1 {
        wrap = <ul class="sf-menu">|</ul>
        noBlur = 1
        expAll = 1
        NO = 1
        NO.before.dataWrap = <li id="pageUid_{field:uid}"> |
        NO.wrapItemAndSub = |</li>
        NO.ATagTitle.field = title // nav_title
        ACT < .NO
        ACT = 1
        ACT.ATagParams = class="active"
      }
      2 < .1
      2 {
        noBlur = 0
      }
      3 < .2
    }
    
    CONTENT = CONTENT
    CONTENT {
      table = tt_content
      select.orderBy = sorting
      select.languageField = sys_language_uid
      select.where = colPos = 0
      renderObj < tt_content
      renderObj.stdWrap.wrap = <div id="con-mitte-left"><!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--></div>
    }
    
    RIGHT = CONTENT
    RIGHT {
      table = tt_content
      slide = -1
      select.orderBy = sorting
      select.languageField = sys_language_uid
      select.where = colPos = 2
      renderObj < tt_content
      renderObj.stdWrap.wrap = <div id="con-mitte-right"> | </div>
    }
    
    HEADERBILD = CONTENT
    HEADERBILD {
      table = tt_content
      slide = -1
      select.orderBy = sorting
      select.languageField = sys_language_uid
      select.where = colPos = 1
      renderObj < tt_content
      renderObj.stdWrap.wrap = <div id="con-headerbild"> | </div>
    }
    
    # DRUCK LINK
    PRINTLINK = TEXT
    PRINTLINK {
      value = Seite drucken
      typolink {
        parameter.data = TSFE:id
        addQueryString = 1
        additionalParams = &type=98
      }
    }
    
    FOOTER = CONTENT
    FOOTER {
      table = pages
      select {
        pidInList = 146
      }
      renderObj = CASE
      renderObj {
        key.field = doktype
        
        4 = TEXT
        4 {
          field = title
          typolink.parameter.field = shortcut
          typolink.title.field = title
          wrap = <div class="partner">|</div>
        }
        
        3 = COA
        3 {
          
          10 = IMAGE
          10 {
            file {
              maxW = 150
              maxH = 150
              
              import = uploads/media/
              import {
                field = media
                listNum = 0
              }
            }
            altText.field = title
            params = class="normal"
          }
          
          20 < .10
          20.file.import.listNum = 0
          20.params = class="hover"
          
          stdWrap {
            wrap = <div class="partner">|</div>
            ifEmpty.cObject = TEXT
            ifEmpty.cObject {
              field = title
            }
            typolink.parameter.field = url
            typolink.title.field = title
          }
          
        }
      }
    }
    
    HEADERNAVI = HMENU
    HEADERNAVI {
      special = list
      special.value = 104,280,7,11,282
      1 = GMENU
      1.noBlur = 1
      1.wrap = |
      1.NO = 1
      1.NO.ATagTitle.field = title
      1.NO {
        altImgResource.import = uploads/media/
        altImgResource.import.field = media
        altImgResource.import.listNum = 0
      }
      1.RO < .1.NO
      1.RO = 1
      1.RO.altImgResource.import.listNum = 1
    }
    
    LOGTEXT = COA_INT
    LOGOUT = COA_INT
    LOGIN = COA_INT
  }
}

plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
config.index_externals = 1 (z.B. für PDF Files)
config.sys_language_uid = 0
config.language = de
config.index_externals = 1

# Anzahl der anzuzeigenden Resultate pro Seite
plugin.tx_indexedsearch._DEFAULT_PI_VARS.results = 10
plugin.tx_indexedsearch {
  # ID der obersten Seite
  search.rootPidList = 1
  show.rules = 0
  show.advancedSearchLink = 1
  show.L1sections = 0
  templateFile = fileadmin/template/indexed_search.tmpl
  _DEFAULT_PI_VARS.lang = 0
  browseBoxWrap = <div class="browsebox">|</div>
  pageWrap = <span>|</span>
}

#Druckpage
print = PAGE
print {
  typeNum = 98
  bodyTag = <body onload="javascript:window.print()">
  ##disable typo3 index
  config.index_enable = 0

  ##disable google index
  headerData.123 = TEXT
  headerData.123.value = <meta name="robots" content="noindex, nofollow" />

  includeCSS.fileDefault = fileadmin/templates/css/print.css
  10 = TEMPLATE
  10 {
    template = FILE
    template.file = fileadmin/templates/print.tmpl
    workOnSubpart = DOCUMENT_BODY

    marks {
      CONTENT < styles.content.get
    }
  }
}

[loginUser = *]
page.10.marks.LOGOUT {
  20 = TEXT
  20.value = Kunden-Logout
  20.typolink.parameter.data = TSFE:id
  20.typolink.additionalParams = &logintype=logout
  20.typolink.title = Abmelden
}
[global]

[loginUser = *]
page.10.marks.LOGTEXT {
  10 = TEXT
  10.data = TSFE:fe_user|user|username
  10.required = 1
  10.wrap = Sie sind eingeloggt als:&nbsp;  |
}
[global]

page.10.marks.LOGIN {
  30 = COA
  30 {
    10 = TEXT
    10.wrap = <a href="#" id="loginButton" title="Anmelden" ><span>|</span></a>
    10.value = Kunden-Login
    20 = COA
    20 {
      wrap = <div id="loginBox"> | </div>
      10 < plugin.tx_felogin_pi1
      10 {
        feloginBaseURL = xxx
        storagePid = 132
        templateFile = fileadmin/template/felogin/felogin_standard.html
        showForgotPasswordLink = 0
        noSuccessMessageAfterLogin = 0
        dateFormat = d.m.Y
        
        redirectMode = login
        #_CSS_DEFAULT_STYLE >
      }
    }
  }
}

[loginUser = *]
page.10.marks.LOGIN.30 >
[global]

[globalVar = TSFE:id = 1]
page.includeJS.file81 = fileadmin/template/js/general-start.js
[global]

[globalVar = GP:tx_ttnews|tt_news > 0]
page.meta.description >
page.meta.description = TEXT
page.meta.description.data = register:newsSubheader

page.meta.keywords >
page.meta.keywords = TEXT
page.meta.keywords.data = register:newsKeywords
[global]

####
# Condition for layout
#####

[globalVar = TSFE:page|layout = 1]
page.10.template.file = fileadmin/template/template2.html
[global]

[globalVar=TSFE:page|layout=2]
page.10.template.file = fileadmin/template/temp-start.html
[global]

[browser = msie]
page.includeCSS.file90 = fileadmin/template/ie.css
[GLOBAL]
MfG René
Systemadministrator, Webentwickler

pantanet.de - pantamedia.com - gosna.de

Wishlist
Zitieren
#6
Danke Renè tu mir noch schwer mit dem richtig formartieren.
Leider zerhauts mir jetzt die Seite ein wenig also oben links steht die Domain und der Link geht auch nicht Sad
Hoffe du hast noch einen Tipp?
Zitieren
#7
kontrolliere deine baseHref, der hat da nen link statt nur der url drinne
MfG René
Systemadministrator, Webentwickler

pantanet.de - pantamedia.com - gosna.de

Wishlist
Zitieren
#8
Ok jetzt gehts Smile Danke Renè Big Grin
Zitieren
#9
schau das du den Code noch mal richtig von mir kopierst...

BTW.: Wenn du im T3Editor bist, den ganzen Text markierst und einmal TAB drückst, dann formatiert er die einrückungen ganz von alleine
MfG René
Systemadministrator, Webentwickler

pantanet.de - pantamedia.com - gosna.de

Wishlist
Zitieren
#10
(22.06.2012, 14:10)rpflamm schrieb: kontrolliere deine baseHref, der hat da nen link statt nur der url drinne

Wie meinst du das?
Hab ich da was falsch gemacht?
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste