Project

General

Profile

Actions

Bug #72413

closed

constants replacing in TSOB

Added by Bernd Wilke over 8 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2015-12-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
tstemplate
Complexity:
Is Regression:
No
Sprint Focus:

Description

in TSOB you have three options for displaying constants (after you disable the option 'Crop lines'):
  • Plain substitution (default)
  • Substituted constants in green
  • UN-substituted constants in green

so constants could be substituted up to ten levels the second option does only substitute one level.

constants

test1 = myvalue
test2 = {$test1} with spaces

setup

lib {
  test = TEXT
  test.value = {$test2}
}
[global]

as the TSOB is for debugging it might be handsome to have the option to see all levels of substitution individually:
there might be another option for selecting the level of substitution.


also in this mode ('Substituted constants in green') there is no possibility to activate a condition which is based on a constant in this mode. (The condition is displayed like any other.)

constans

rootpid = 2

setup

[globalVar = TSFE:id = {$rootpid}]
page.10 = TEXT
page.10.value = this is the homepage
[global]


Files

tsob.png (61.8 KB) tsob.png Riccardo De Contardi, 2019-09-04 22:21

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #15752: Faster "substituteConstants"ClosedWolfgang Klinger2006-03-02

Actions
Actions #1

Updated by Bernd Wilke about 8 years ago

also:
You can not see replaced constants if you choose constants to display.
no option to replace or highlight constants at all.

Actions #2

Updated by Benni Mack over 7 years ago

  • Target version changed from 6.2.18 to Candidate for patchlevel
Actions #3

Updated by Riccardo De Contardi over 4 years ago

I tried the following test with TYPO3 8.7.27:

TS Constants:

rootpid = 20
test1 = myvalue
test2 = {$test1} with spaces

TS Setup (relevant part)

page=PAGE

[globalVar = TSFE:id = {$rootpid}]
  page.16 = TEXT 
  page.16.value = this is the homepage
[global]

page.17 = TEXT
page.17.value = {$test2}

I go to the TSOB and select: Dysplay constants: Substituded constants in green

Results:

see attached screenshot:

@Bernd Wilke you wrote:

there is no possibility to activate a condition which is based on a constant in this mode. (The condition is displayed like any other.)

I am not sure I've understood what you mean; as far as I have seen, when I check the condition [globalVar = TSFE:id = 20] the page.16 object appears on the TSOB tree

Actions #4

Updated by Christian Eßl over 4 years ago

  • Tags set to tstemplate
Actions #5

Updated by Benni Mack about 4 years ago

  • Status changed from New to Rejected

I will close this issue now as it works as expected, and we're lacking feedback. Bernd, if you have further questions, reach out to me so I can re-open the ticket.

Actions

Also available in: Atom PDF