[TYPO3] TYPO3: Newbie template question

Jasper jasper22 at xaker.ru
Tue Dec 27 03:17:32 CET 2005


Hi all

I followed the "Modern template building guide" at typo3.org without 
installing any "dummy" or "quickstart" packages. I created an 'root 
page' and just started with global 'template' -> so I copyed allready 
builded webpage to fileadmin/template/main and configured template 
script as it shown in tutorial:

tx_automaketemplate_pi1 {
   # Read the template file:
   content = FILE
   content.file = fileadmin/template/main/index.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
     }
     #elements close

   # Prefix all relative paths with this value:
   relPathPrefix = fileadmin/template/main/

}
#autoparser close


# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1
page.10 =< plugin.tx_automaketemplate_pi1

but whenever I trying to see the results I receive only blank page - the 
source is: <html><body></body></html>

What I can do about it ??? Why my page is not shown ???

P.S.
    1) My installaion is: TYPO3 on Linux (Fedora Core 4), Apache 2.0 - 
every access permission is set as regular and those files is readeable 
and writeable (and I can even browse to this directory by 'Filelist'
    2) I can reach this page directly: 
http://localhost/fileadmin/template/main/index.html - and I can see the page
    3) Raw source code of the page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
         <title>Untitled</title>
<style>
td{font-family:Arial;font-size:10px;color:#747474}
.cap{font-weight:bold;font-size:11px;padding-left:30px;padding-right:30px;padding-top:7px;}
.left{font-weight:bold;font-size:10px;padding-left:30px;padding-right:30px;padding-top:5px;}
.footer{font-weight:bold;color:#FF2A00;text-decoration:none;}
</style>
</head>

<body>
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
         <td rowspan="10" width="50%" height="100%" 
background="images/bg1222.jpg" style="background-position:right top; 
background-repeat:repeat-y">
         </td>
         <td rowspan="10" width="1" bgcolor="#000000">
         </td>
         <td colspan="4">
         <table cellpadding="0" cellspacing="0" border="0">
                 <tr>
                         <td rowspan="3"><img src="images/lefttop.jpg">
                         </td>
                         <td width="686" height="32" 
background="images/top.jpg">
                         </td>
                         <td rowspan="3"><img src="images/righttop.jpg">
...
...
(continues)

The questions is: Why I can not see the page ? Why is only 'empty' page 
is shown ?



More information about the TYPO3-english mailing list