Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Print-Link einrichten?
#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


Nachrichten in diesem Thema
Print-Link einrichten? - von ginobranco - 22.06.2012, 10:32
RE: Print-Link einrichten? - von rpflamm - 22.06.2012, 11:01
RE: Print-Link einrichten? - von ginobranco - 22.06.2012, 11:10
RE: Print-Link einrichten? - von ginobranco - 22.06.2012, 13:13
RE: Print-Link einrichten? - von rpflamm - 22.06.2012, 14:03
RE: Print-Link einrichten? - von ginobranco - 22.06.2012, 14:08
RE: Print-Link einrichten? - von rpflamm - 22.06.2012, 14:10
RE: Print-Link einrichten? - von ginobranco - 22.06.2012, 14:22
RE: Print-Link einrichten? - von ginobranco - 22.06.2012, 14:12
RE: Print-Link einrichten? - von rpflamm - 22.06.2012, 14:12
RE: Print-Link einrichten? - von ginobranco - 22.06.2012, 15:14
RE: Print-Link einrichten? - von michsch - 22.06.2012, 15:42

Gehe zu:


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