Project

General

Profile

Actions

Bug #72180

closed

field = backend_layout in bodyTagCObject not working

Added by Patrick Lenk almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2015-12-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I add depending on the backend layout fiels classes to the body tag.

page.bodyTagCObject = COA 
page.bodyTagCObject{
  10 = COA
  10{
    10 = TEXT
    10{
      if {
        value = 22
        isInList.data = levelfield:-2,backend_layout_next_level,slide
        isInList.override.data = TSFE:page|backend_layout
      }  
      value = pageDefault
      stdWrap.noTrimWrap = | ||
    }

  ...
  ...
  ...
  }

if i replace

isInList.data = levelfield:-2,backend_layout_next_level,slide
isInList.override.data = TSFE:page|backend_layout

with

field = backend_layout

the condition is not working and all classes are rendered.

Actions #1

Updated by Morton Jonuschat almost 9 years ago

  • Description updated (diff)
  • Target version deleted (7.6.1)
Actions #2

Updated by Georg Ringer almost 9 years ago

  • Status changed from New to Needs Feedback

is the field backend_layout of the current page really selected?

anyhow, since version 7, you can use

data = pagelayout

please check if this is fine for you.

Actions #3

Updated by Patrick Lenk almost 9 years ago

ok its better to read the What’s New docs. All works great. sorry

Actions #4

Updated by Wouter Wolters almost 9 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF