Project

General

Profile

Actions

Bug #17415

closed

Don't work automaketemplate

Added by Andrey over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-06-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When I maked new html-based template and insert in setup code from documentation "Modern template building" the code dosen't working: don't insert content from styles.content in page. The page code in attache. The code of template setup fild above.

  1. Configuring the Auto-Parser for main template:
    plugin.tx_automaketemplate_pi1 { # Read the template file:
    content = FILE
    content.file = fileadmin/template/main/index.htm
    1. Here we define which elements in the HTML that
    2. 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
    }

    1. Prefix all relative paths with this value:
      relPathPrefix = fileadmin/template/main/
      }
  1. Main TEMPLATE cObject for the BODY
    temp.mainTemplate = TEMPLATE
    temp.mainTemplate { # Feeding the content from the Auto-parser to the TEMPLATE cObject:
    template =< plugin.tx_automaketemplate_pi1 # Select only the content between the <body>-tags
    workOnSubpart = DOCUMENT_BODY
    1. Substitute the ###menu_1### subpart with dynamic menu:
      subparts.menu_1 < temp.menu_1
    1. Substitute the ###content### subpart with some example content:

    subparts.content < styles.content.get

}

  1. 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
    }
  1. Default PAGE object:
    page = PAGE
    page.typeNum = 0
  1. Copying the content from TEMPLATE for <body>-section:
    page.10 < temp.mainTemplate
  1. Copying the content from TEMPLATE for <head>-section:
    page.headerData.10 < temp.headTemplate

(issue imported from #M5845)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #17492: automaketemplate won't workClosed2007-08-03

Actions
Actions

Also available in: Atom PDF