Project

General

Profile

Actions

Bug #20237

closed

Alignment Error in TCEforms with Palette title --palette--;myTitle

Added by Stefan Geith over 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-03-26
Due date:
% Done:

0%

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

Description

When I add a palette to the showview-item in TCA, that has a 'Alternative Fieldlabel', then it will not be rendered like the field-title of normal fields.

Example (see attached screenshot):
$TCA[] = array ( ... "types" => array (
   "0" => array("showitem" => 'title;;30;;1-1-1, --palette--;Released;31;;1-1-1, '
...

The item 'Released' ist not aligned with the item 'Title'.

I already found out, that in
function setNewBEDesign() of class.t3lib_tceforms.php, $
this->palFieldTemplateHeade differs from $this->fieldTemplate.

It seems to be the difference between
<td>###FIELD_HELP_ICON###</td>
and
<td></td>
But simply adopting this parts doesn't solve the problem - it looks better (is indented now) but still not correct.

(issue imported from #M10779)


Files

AlignmentError-PaletteText.gif (7.15 KB) AlignmentError-PaletteText.gif Administrator Admin, 2009-03-26 09:10
PaletteAlign-Error-Rev9216.gif (13.4 KB) PaletteAlign-Error-Rev9216.gif Administrator Admin, 2010-10-28 09:17
PaletteAlign-Error-Rev10092.gif (14.4 KB) PaletteAlign-Error-Rev10092.gif Administrator Admin, 2011-01-17 09:12
Actions #1

Updated by Stefan Geith over 15 years ago

IF I change
--palette--;Released;31;;1-1-1,
to
--palette--;Released;31,

Then the alignment is OK.

If the following field in the filedlist doesn't have a form style-code (1-1-1), the it is also rendered OK.

This error only occurs, if the palette and the next field both have a Form-style-code (e.g. ;;;;1-1-1).

Actions #2

Updated by Christian Kuhn about 15 years ago

As far as I can see the palette labels are not rendered anymore in current trunk:

field, --palette--;foo;1;;1-1-1
-> "foo" does not appear for me.

This is only true if "Show secondary options (palettes)" is enabled: If disabled, the header line is drawn and the palette content appears on click.

Actions #3

Updated by Stefan Geith about 15 years ago

Ever since I use this feature, the title of the palette is only displayed, if the palette has
'canNotCollapse'=>1

This could be discussed, if it makes sense ... I think, a palette defined with --palette-- is (must be) always visible - meaning: canNotCollapse' = 1

Sidenote:
At the moment (4.3 RC1), the normal headers a rendered with [b]-tags and palette-headers are rendered with [strong]-tags. So they look different ...

Actions #4

Updated by Stefan Geith over 14 years ago

This Error is still in 4.4 and 4.5-trunk

If I Change in class.t3lib_tceforms.php in function setNewBEDesign() from:
$this->palFieldTemplateHeader='
<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
<td></td>
<td nowrap="nowrap" valign="top"><strong>###FIELD_HEADER###</strong></td>
</tr>';
to:
$this->palFieldTemplateHeader='
<tr ###BGCOLOR_HEAD######CLASSATTR_2###>
<td width="29"></td>
<td nowrap="nowrap" valign="top"><strong>###FIELD_HEADER###</strong></td>
</tr>';
then all looks good.

The Problem is, that a single rendered palette is rendered as a single table and the first column doesnt have the placeholders for "t3-TCEforms-reqImg" and "t3-TCEforms-contentchangedImg".

So either there should be a dummy image in the first column or the column width should be set by some css.

Actions #5

Updated by Stefan Geith about 14 years ago

This alignment error is still present in Version 4.5, Rev. 9216.
See attached screenshot 'PaletteAlign-Error-Rev9216.gif'.

How to test:Use type- and palette-settings like these:

01:
'types' ... array('showitem'=>'... title;;1;;1-1-1, text;;;;1-1-1, ...')
'palettes' .. '1' => array('showitem' => 'impressum'),

02:
'types' ... array('showitem'=>'... title, --palette--;;1, text;;;;1-1-1, ...')
'palettes' .. '1' => array('showitem' => 'impressum'),

03:
'types' ... array('showitem'=>'... title, --palette--;;1;;1-1-1, text;;;;1-1-1, ...')
'palettes' .. '1' => array('showitem' => 'impressum'),

Actions #6

Updated by Jo Hasenau almost 14 years ago

Is this still valid in current trunk?

Actions #7

Updated by Stefan Geith almost 14 years ago

The Problem seems to be solved in Trunk Rev 10092 - see attached screenshot PaletteAlign-Error-Rev10092.gif

Actions #8

Updated by Xavier Perseguers almost 13 years ago

  • Assignee deleted (Steffen Kamper)
  • Target version deleted (0)
Actions #9

Updated by Alexander Opitz over 11 years ago

  • Status changed from Accepted to Closed

Closing as commented.

Actions

Also available in: Atom PDF