[TYPO3] TS: Supply minW/minH with a value from a register

Joerg Wagner - DigiLog multimedia usenet at digilog.de
Sun Mar 12 16:51:47 CET 2006

Well, I just dropped into the next similar restriction:
GIFBUILDER's maxWidth property is of data type "pixels" instead of "pixels /
stdWrap" (while e.g. GIFBUILDER.backColor on the other hand is "GraphicColor 
/ stdWrap"). I need to restrict the length of a GIFBUILDER image to a 
dynamic value, and there is no way to do that.

The fact that some of the TS object props allow for stdWrap properties and 
others do not seems to be absolutely arbitrary and it will pose more and 
more problems as tiled TemplaVoila designs are a quickly spreading concept.

As an example I have attached a screenshot ...
(Kachelung.png  - 
http://bugs.typo3.org/file_download.php?file_id=1211&type=bug  )
...of a TV based Typo3 design that completely abandons the concept of column 
based design in favour of a tile based approach. TV can handle such concepts 
quite well meanwhile.
In my example all tiles are based on one universal FCE that allows for a 
very elegant handling of the tiles. It allows to create tiles with different 
widths and heights, background colors and background images.

But when you try to put this concept to work in Typo3, TS lets you run into 
one dead end after the other, because it is often not possible to fill in 
dynamic size and color attributes for various elements that are needed for 
these tiles.
In times of column based design this was acceptable, as most of the props 
(widths, heights, colors,...) needed for GIFBUILDER and other objects in the 
columns had fixed values. But meanwhile this is changing rapidly, as my 
example demonstrates.

The bottomline is that I humbly ask why not ALL basic TS data types allow to 
obtain their values from stdWrap props. This would allow for a lot more 
flexibility with dynamic designs like the one I attached. It would also make 
the whole TS syntax more consistend (I currently spend a lot of time in 
TSref just to find out which props allow for which kind of manipulation - 
there is just no systematic principle to that).

Regarding how small the change was that Peter had to place to make minW and 
minH stdWrappable, wouldn't it be a good solution to standardize all of the 
TS data types to allow to be stdWrapped?!?

Or do I overlook any considerations that would limit this approach (like 
performance issues)?

Jörg Wagner
DigiLog multimedia

"Joerg Wagner - DigiLog multimedia" <usenet at digilog.de> schrieb im 
news:mailman.1.1142073459.9257.typo3-english at lists.netfielders.de...
> Hi Peter,
> I just applied your patch against beta3 (manually adjusting the line 
> counts) and it works like a charm. Concerning the elementary level of this 
> change I am sure it will work on RC1 too. Nevertheless I will upgrade to 
> RC1 within the next days and will post here again.
>> ... also I am not sure if we can get that into 4 since
>> feature-freeze has just been made and I would consider it a new feature. 
>> ;(
> That would be a pitty.
> I agree that this is a new feature, but one that cleans a basic 
> inconsistency in the data types of these props and its solution is so 
> elementary that it will hardly affect the stabilization process of the 
> RCs.
> BTW:
> This feature might seem nonessential at first glance, but without it it is 
> virtually impossible to scale a background-image for a fixed size <div> 
> (where the div's size itself is taken from a register) in a way that the 
> images aspect ratio is maintained and the image covers the whole div, not 
> leaving any visible boarders. (Similar to a scaling _down_ to fit until 
> the shorter edge of the image rectangle meets the corresponding edge of 
> the target rectangle.) This has gained importance with the new TemplaVoila 
> version, as since TV 0.5.0 it is now possible to nicely assign 
> background-image attributes to divs.
> Many thanks again. This is VERY helpful !
> --
> Jörg Wagner
> DigiLog multimedia
> "Peter Niederlag" <niederlag at ikd01.de> schrieb im Newsbeitrag 
> news:mailman.1.1142071675.26495.typo3-english at lists.netfielders.de...
>> Hi,
>> Joerg Wagner - DigiLog multimedia schrieb:
>> [...]
>>> Any workaround for this?!? Any idea why these two props are not of data 
>>> type
>>> "pixel / stdWrap"?!?
>> probabbly because noone requested/needed that yet?
>>> Thanks for your help! It is much appreciated (and very neccesary!).
>> I am not that much into the img-issues but have filed a feature-request
>> and included a patch that should fix the problem.
>> http://bugs.typo3.org/view.php?id=2830
>> Please test it, also I am not sure if we can get that into 4 since
>> feature-freeze has just been made and I would consider it a new feature. 
>> ;(
>> hth,
>> Peter
>> -- 
>> Peter Niederlag
>> http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
>> http://www.typo3partner.net * professional services network *

More information about the TYPO3-english mailing list