[TYPO3-content-rendering] [Typo3-dev] Less features, more future

JoH info at cybercraft.de
Fri Oct 14 00:04:00 CEST 2005


Elmar Hinz wrote:
>>> I think JoH is refering to generating the CSS dynamically, and
>>> assigning UNIQUE "id"s to each element that needs to be styled. So
>>> instead of:
>>>
>>>   <div style="width:150px;">
>>>
>>> we would have:
>>>
>>>  #div78234892524 { width: 150px; }
>>
>>
>> Not exactly.
>> Since every content element can be defined by
>> a) the table it is taken from and
>> b) the uid
>> you can take this to have the following combination of class _and_
>> id:
>>
>> <div class="single_imagecontainer" id="tt_content_123_1">
>>
>> and for the next one
>>
>> <div class="single_imagecontainer" id="tt_content_123_2">
>>
>> and so on.
>>
>
> It could come to cases, where you have
>
> <div class="single_imagecontainer" id="tt_content_123_1">
>
> twice on a page. The id wouldn't be unique anymore.

Well - this could be solved by simply adding an elementcounter on a per page
base.

<div class="single_imagecontainer" id="tt_content_123_1_1">
<div class="single_imagecontainer" id="tt_content_124_1_2">
<div class="single_imagecontainer" id="tt_content_125_1_3">
<div class="single_imagecontainer" id="tt_content_125_2_4">
<div class="single_imagecontainer" id="tt_content_123_1_5">

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau





More information about the TYPO3-project-content-rendering mailing list