Krungs WikiHauptseite | Über | Spezialseiten | Anmelden

Druckversion | Lizenzbestimmungen

Typo3

default install these extensions:

CSS styled content
Template Auto-parser

for seo

Auto Alias
JB No index.php?id=
TS Language, German

Inhaltsverzeichnis

TypoScript


right content in TS, oder über styles.content als static template


  
  styles.content.get = CONTENT
    styles.content.get.table = tt_content
    styles.content.get.select.orderby = sorting
        
   styles.content.get.select.where = colPos = 2
    
   styles.content.getRight <  styles.content.get 
   subparts.text_cont < styles.content.getRight


als static template:

    subparts.text_cont < styles.content.getRight



docu:

http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[show]=matrix&cHash=2ca089abb7


mehrsprachigkeit


links:

anleitung von kaspar:

http://typo3.org/documentation/tips-tricks/multi-language-sites-in-typo3/

kommentar dazu:

http://jweiland.net/typo3cms/howto/typo3-languages/


sonst:

forum: http://typo3.net/index.php?id=13&action=list_topic&fid=18

daraus:

http://typo3.net/forum/list/list_post//9848/
http://www.typo3.net/forum/?&action=list_post&tid=7985
http://typo3.net/forum/list/list_post//9119/

gmenu


akzeptierte fonts:

http://lists.netfielders.de/pipermail/typo3-english/2005-January/000183.html


Wie werden gmenu in zwei Zeilen geschrieben Long names, and images

http://lists.netfielders.de/pipermail/typo3-english/2005-July/009187.html

Farblicher Hintergrund für Texte in GMENU, erklärt box, und bgimig

http://lists.netfielders.de/pipermail/typo3-at/2004-April/001378.html

TMENUE

TMENU mit Hintergrundbild

//---------------------------nav menu ---------------------------

temp.mainnav = COBJ_ARRAY
temp.mainnav {
  20 = HMENU
  20.entryLevel = 0
  20.maxItems = 5
  
  20.1 = TMENU
  
  20.1 {
    NO {
      allWrap = <div class="mainnav_no"><div class="mainnav_font"> |</div></div>
      stdWrap.case = upper
     
    } //
    
    ACT < .NO
    ACT = 1

    ACT{
      allWrap = <div class="mainnav_act"><div class="mainnav_font"> |</div></div>
    }
    
    RO < .NO
    RO = 1

    RO{
      allWrap = <div class="mainnav_ro"><div class="mainnav_font"> |</div></div>
    }
  }
} // mainnav

css dazu:

div.mainnav_no{
  position: relative;
  width: 100px;
  height: 18px;
  background-image:url(/fileadmin/template/mannav_no.gif);
 float: right;
}

div.mainnav_act{
  position: relative;
  width: 100px;
  height: 18px;
  background-image:url(/fileadmin/template/mannav_act.gif);
  float: right;
}

div.mainnav_ro{
  position: relative;
  width: 100px;
  height: 18px;
  background-image:url(/fileadmin/template/mannav_act.gif);
  float: right;
}

div.mainnav_font{
  font-weight: bold;
  font-size: 10px; 
  letter-spacing: 2px;
  padding-left: 4px;
}


constants howto

http://typo3.org/documentation/document-library/doc_statictmpl/styles_gmenu_first/

extensions


CSS styled content
Template Auto-parser


optional

Meta tags, extended


nur das erste content element ausgeben

# first content element
#
temp.newcontent = COA
#
temp.newcontent{
  10 = COA
  #10.if {
   # value = 1
    #isGreaterThan.numRows.table = tt_content
    #isGreaterThan.numRows.select < styles.content.get.select
 # }

  10.1 < styles.content.get
  10.1.stdWrap.wrap = <table class="top">|</table>
  10.1.stdWrap.required = 1
  10.1.select.begin = 0
  10.1.select.max = 1
 }

code von hier:

http://www.typo3.net/forum/list/list_post//27630/

Content element wizard ändern

Dafür erweitere die php-Klasse SC_db_new_content_el und speichere diese datei unter typo3conf/ux_SC_db_new_content_el.php

<?php
class ux_SC_db_new_content_el extends SC_db_new_content_el {
  
  
  // Modify the Wizard Array, which holds the values shown at create new
  //record page:
  function wizardArray() {
    global $LANG,$TBE_MODULES_EXT;
    
    $wizardItems = array(
                         "common" => array("header"=>"Typical page content"),
                         
                         'common_1' => array(
                                             "icon"=>'../typo3conf/hos/intext_left_wi.gif',
                                             'title'=>'Text with Image to the left',
                                             'description'=>'A regular text element which contains a image positioned left to the text',
                                             'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=26&defVals[tt_content][imagewidth]=80',
                                             ),

                         
                         "common_2" => array(
                                             "icon"=>'../typo3conf/hos/fdfx_2cols.gif',
                                             "title"=>'Two Column Text',
                                             "description"=>'A Text with two Column',
                                             'params'=>'&defVals[tt_content][CType]=fdfx_2cols_pi1'
                                             ),
                         

                         'common_3' => array(
                                             "icon"=>'../typo3conf/hos/intext_right_wi.gif',
                                             'title'=>'Text with big Image to the right',
                                             'description'=>'A regular text element which contains a image positioned right to the text',
                                             'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=25&defVals[tt_content][imagewidth]=480',
                                             'tt_content_defValues' => array(
                                                                             'CType' => 'textpic',
                                                                             'imageorient' => 25,
                                                                             'imagewidth' => 480,
                                                                             )
                                             ),

                         );
    
    return $wizardItems;
  }
}
?>


Um das ganze auch zu verwenden, mache diesen Eintrag in typo3conf/localconf.php

$TYPO3_CONF_VARS["BE"]["XCLASS"]["ext/cms/layout/db_new_content_el.php"] = PATH_typo3conf."class.ux_db_new_content_el.php";


css per random laden


im typoscritp template:


# Configuring the Auto-Parser for main template:

plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/rasterpage-startseite-css.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
    
    TD.all = 1
    DIV.all = 1
  }
 
    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/
}


//----------------------------  random css  ---------------------------------

temp.cssrandom =  PHP_SCRIPT
temp.cssrandom.file = fileadmin/template/random_css.php

 
# 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

/*
/ html templates need a marker named <!--###cssrandom### begin -->random css<!--###cssrandom### end --> in the head
 */

   subparts.cssrandom < temp.cssrandom
}

im html-template:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

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

<title>DER TITEL</title>

<!--###cssrandom### begin -->random css<!--###cssrandom### end -->
</head>


und das ist das random_css.php

<?php

/***********************
*  Copyright notice

*  GPL

*  @author fabian thommen job@fabtho.net

*/


$relPathPrefix='fileadmin/template/';

$css = array('eins.css','zwei.css','drei.css','vier.css');

$randomzahl = rand(0, count($css)-1);

$content = '<link href="'.$relPathPrefix.'css/'.$css[$randomzahl].'" rel="stylesheet" type="text/css" />';

if (headers_sent()) {

   exit;

}

?>


projekt spezifisch

hos

modifikationen


in extension cron_cssstyledimgtext:

file: typo3conf/ext/cron_cssstyledimgtext/pi1/class.tx_croncssstyledimgtext_pi1.php

line: 514


case 25:
$output = '<div class="'.$class.'">'.$images.$content.'</div><div class="csi-clear"></div>';


line: 521

case 26:
$output = '<div class="'.$class.'">'.$images.$content.'</div><div class="csi-clear"></div>';


content wizard

typo3conf/class.ux_db_new_content_el.php:


<?php
class ux_SC_db_new_content_el extends SC_db_new_content_el {
  
  
  // Modify the Wizard Array, which holds the values shown at create new
  //record page:
  function wizardArray() {
    global $LANG,$TBE_MODULES_EXT;
    
    $wizardItems = array(
                         "common" => array("header"=>"Typical page content"),
                         
                         'common_1' => array(
                                             "icon"=>'../typo3conf/hos/intext_left_wi.gif',
                                             'title'=>'Text with Image to the left',
                                             'description'=>'A regular text element which contains a image positioned left to the text',
                                             'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=26&defVals[tt_content][imagewidth]=80',
                                             ),

                         
                         "common_2" => array(
                                             "icon"=>'../typo3conf/hos/fdfx_2cols.gif',
                                             "title"=>'Two Column Text',
                                             "description"=>'A Text with two Column',
                                             'params'=>'&defVals[tt_content][CType]=fdfx_2cols_pi1'
                                             ),
                         

                         'common_3' => array(
                                             "icon"=>'../typo3conf/hos/intext_right_wi.gif',
                                             'title'=>'Text with big Image to the right',
                                             'description'=>'A regular text element which contains a image positioned right to the text',
                                             'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=25&defVals[tt_content][imagewidth]=470',
                                             'tt_content_defValues' => array(
                                                                             'CType' => 'textpic',
                                                                             'imageorient' => 25,
                                                                             'imagewidth' => 480,
                                                                             )
                                             ),

                         );
    
    return $wizardItems;
  }
}
?>


quellen


http://forum.typo3.fr/lofiversion/index.php/t2590.html
http://lists.netfielders.de/pipermail/typo3-at/2004-October/003610.html

mehr spalten zu left/normal/right/border hinzufügen

http://www.exotec.de/?p=333

von einer extension eine variable von in typoscript lesen

http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110120346/?tx_maillisttofaq_pi1%5Bsword%5D=use%20variable%20extension&tx_maillisttofaq_pi1%5Banswered_only%5D=1&tx_maillisttofaq_pi1%5Bmode%5D=1

sprachen

http://www.typo3.net/index.php?id=13&action=list_post&tid=22664&page=2

Von "http://krungkuene.org/krung/wiki/Typo3.html"

Diese Seite wurde bisher 8550 mal abgerufen. Diese Seite wurde zuletzt geändert um 16:06, 1. Feb 2006. Inhalt ist verfügbar unter der Attribution-NonCommercial-ShareAlike.


Finden
Blättern
Hauptseite
Krungs Wiki-Portal
Aktuelle Ereignisse
Letzte Änderungen
Zufälliger Artikel
Hilfe
Spenden
Seitendaten
Versionen
Was zeigt hierhin
Verlinkte Seiten
Spezialseiten
Neue Artikel
Bilderliste
Statistik
Kontakt
Mehr...