[TYPO3] CSS woes

Patrick O'Hara pdohara at practicalprogrammer.org
Thu Mar 9 15:01:30 CET 2006


See Below

On 3/8/06, Christopher <bedlamhotel at gmail.com> wrote:
>
> Hi,
>
> On 3/8/06, Patrick O'Hara <pdohara at practicalprogrammer.org> wrote:
> > Thanks for the response, but no I do not have a meta tag in my template.
> > Something in Typo3 is generating the meta tag.
>
> I've never seen a 'us-ascii' charset meta element in a typo3 site.
> I've hardly ever seen us-ascii specified as a charset in _any_ website
> in fact. Typo3 will add _one_ meta element specifying the iso-8859
> charset by default, it will _not_ add that second one--it has to be
> there as a result of one of only four things that I can think of:
>
> a) If using TV, it's in the original template and you've selected it
> when mapping the template
> b) You've specified it using "page.charset =" (though I still don't
> know how that could get you _two_ specified charsets...)
> c) Possibly an extension put it there (but this would be a strange
> thing for an extension to do...)
> d) Maybe it's there because you're using one of the deprecated static
> templates in your main TS template (if so, switch to css-styled
> content instead).
>
>
> -Christopher
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>

Here is what I have.  Perhaps you can see something here that looks odd.

The Header section of my template (No I am not using TV)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Woodridge Community Church: Seeds of Hope
Ministry</TITLE>

<LINK href="fileadmin/woodridge-main.css" rel=stylesheet>
<SCRIPT type="text/javascript" language=javascript>
<!--
    browserName = navigator.appName;
    browserVer = parseInt(navigator.appVersion);
    var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer
>= 4);
    if ((browserName == "Netscape" && browserVer >= 3) || msie4 ||
browserName=="Konqueror") {version = "n3";} else {version = "n2";}
    function blurLink(theObject)    {
        if (msie4)    {theObject.blur();}
    }


// -->
</SCRIPT>
</HEAD>
<BODY>
<!--###DOCUMENT_BODY### Start-->
<DIV class="ministry_banner">
      <A href="http://www.woodridge.cc/">

        <IMG height="104" width="172" alt="Woodridge Community Church"
src="fileadmin/logo.gif" >

      </A>

The setup section of my Template:
includeLibs.tmenu_layers = media/scripts/tmenu_layers.php
# include the php-script for rotating images
includeLibs.ts_ckfortune = EXT:ck_fortune/pi1/class.tx_ckfortune_pi1.php

page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/woodridge-main.css

page.bodyTag = <body>
page.10 = TEMPLATE
page.10 {
  template = FILE
  template.file = fileadmin/woodridge-template.html
  workOnSubpart = DOCUMENT_BODY

    ### ROTATING IMAGES ###
    subparts.WOODRIDGE_PIC = USER_INT
    subparts.WOODRIDGE_PIC {
         userFunc = tx_ckfortune_pi1->main
         # random rotating
         20.time = rand
         # page id containing data
         20.datapid = 119
         # display image field
         20.10.field = image
         # type function: display an image
         20.10.type = IMAGE

    # end of woodridge pic
    }

  subparts.PAGETITLE = TEXT
  subparts.PAGETITLE.field = title
  subparts.PAGETITLE.wrap = <div class="page-title">|</div>

  subparts.SUBTITLE = TEXT
  subparts.SUBTITLE.field = subtitle
  subparts.SUBTITLE.wrap = <div class="page-sub-title">|</div>

  subparts.LEFTCONTENT < styles.content.getLeft
  subparts.LEFTCONTENT.stdWrap.required = 1
  subparts.LEFTCONTENT.stdWrap.wrap = <td width="687" bgcolor="#006633"
class="content" valign="top">|</td>

  subparts.RIGHTCONTENT < styles.content.getRight
  subparts.RIGHTCONTENT.stdWrap.required = 1
  subparts.RIGHTCONTENT.stdWrap.wrap = <td width="687" bgcolor="#006633"
class="footer" valign="top">|</td>

  subparts.CONTENT < styles.content.get

  subparts.TOPNAV= HMENU
  subparts.TOPNAV.entryLevel = 1
  subparts.TOPNAV.1 = TMENU
  subparts.TOPNAV.1.expAll=1
  subparts.TOPNAV.1.NO {
    allWrap = <li>|
  }

  subparts.LEFTNAV= HMENU
  subparts.LEFTNAV.1 = TMENU
  subparts.LEFTNAV.1.NO.allWrap = <li>|</li>

  subparts.LEFTNAV.2 = TMENU
  subparts.LEFTNAV.2.wrap = <ul>|</ul>
  subparts.LEFTNAV.2.NO {
    allWrap = <li>|
  }
  subparts.LEFTNAV.3 = TMENU
  subparts.LEFTNAV.3.wrap = <ul>|</ul>
  subparts.LEFTNAV.3.NO {
    allWrap = <li>|
  }
  subparts.LEFTNAV.4 = TMENU
  subparts.LEFTNAV.4.wrap = <ul>|</ul>
  subparts.LEFTNAV.4.NO {
    allWrap = <li>|
  }

  subparts.BOTTOMNAV= HMENU
  subparts.BOTTOMNAV.1 = TMENU
  subparts.BOTTOMNAV.1.NO {
    allWrap = <li>|</li>
  }
}

plugin {
       tx_lzgallery_pi1._CSS_DEFAULT_STYLE >
       tx_indexedsearch._CSS_DEFAULT_STYLE >
       tx_femp3player_pi1._CSS_DEFAULT_STYLE >
       tx_croncssstyledimgtext._CSS_DEFAULT_STYLE >
       tx_lzgallery_pi1_simple._CSS_DEFAULT_STYLE >
       tt_guest.wrap1 = <font face="verdana" size=2 color=black> | </font>
       tt_guest.color3 = #006633
       tt_guest.color1 = teal
       tt_guest.color2 = green
}
config {
       doctype = xhtml_trans
       xmlprologue = none
       xhtml_cleaning = all
       RTE_compliant = 1
}
cSet {
       pageColor = black
       tableCellColor = #006633
       color = grey
       color1 = grey
       color2 = #009966
}

RTE {
       default.enableWordClean = 1
       default.contentCSS = fileadmin/woodridge-main.css
}

I have no constants defined.  I have the following static includes:
styles.content
content
cSet stylesheet
cSet

and I have these static includes from extensions:
CSS Styled IMGTEXT
CSS Styles Content
HTML/CSS Styling

If there is anything else you would like to see let me know.  I am pretty
much ready to "give up", and live with the fact that Typo3 is creating an
invalid page.

--
Tanks for your Support
Pat O'Hara
  _      _      _
/*\==  /*\==  /*\==
<ooo>  <ooo>  <ooo>


More information about the TYPO3-english mailing list