Project

General

Profile

Actions

Bug #23744

closed

A new TypoScript cObject: FLUIDTEMPLATE

Added by Benni Mack over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2010-10-15
Due date:
% Done:

0%

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

Description

This is a result of some enthusiastic guys (Steffen Ritter and me) from the code sprint. Something we wanted for a long time, and this is our first version: a new Typoscript Object Type called "FLUIDTEMPLATE". Guess what it does: Yes, it can be used as a replacement for TEMPLATE, with (almost) all the glitter that Fluid has to offer.

The fluid template syntax will look like this:

page = PAGE
page.10 = FLUIDTEMPLATE
page.10 {

  1. the FLUID template, has stdWrap functionality
    file = fileadmin/mytemplates/mytemplate.html
  1. setting a specific partials path, usually it's layouts/ underneath the template file
    partialRootPath = fileadmin/partials/
  1. setting a specific layout path, usually it's layouts/ underneath the template file
    layoutRootPath = fileadmin/layouts/
  1. setting variables that should be available in
  2. the fluid template
    variables {
    mytitle = TEXT
    mytitle.data = page:title
    }
    }

(issue imported from #M16008)


Files

fluidtemplate_v4.patch (5.93 KB) fluidtemplate_v4.patch Administrator Admin, 2010-10-15 22:33
Actions #1

Updated by Ingo Renner over 13 years ago

How about a shorter name, like just plain and simple FLUID?

Another idea I once had which is somehow related: I planed to redo TIMTAB with extbase and fluid, however , it should still work with tt_news. This results in needing a fluid + classic marker connector / adapter / thingy. The idea is to have a template file with both markers. TIMTAB would take care of pushing the template through fluid and providing its data. Fluid would return the result to TIMTAB, the regular, classic markers would still be in, not modified by fluid. tt_news could then go on and replace the remaining classic markers...

Maybe that could also be an idea for transparent processing of core templates... sticking with the known TEMPLATE cObject, but having it enhanced with the ability of rendering fluid markers...

Actions #2

Updated by Sebastian Kurfuerst over 13 years ago

Hey,

I'll have a look into this as well :-) I'm on holidays now, but you can expect my feedback on Thursday at latest.

Greets,
Sebastian

Actions #3

Updated by Steffen Kamper over 13 years ago

Committed to trunk rev 9160

Actions #4

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF