[TYPO3-templavoila] Mapping rules in matters of class or id
Christian Vetter
Christian.Vetter at dragoner-design.de
Thu Apr 6 09:50:59 CEST 2006
Hi there,
Am 05.04.2006, 20:37 Uhr, schrieb Frederic Gaus
<mailinglists at necroshine.de>:
>>> it would be very nice to set mapping rules related to a specific class
>>> or uid. Is this possible? Will it be possible?
>>
>> Mapping rules are defined in DS. CSS classes and IDs appear in template
>> files, thus they are bound to TO. DS should know nothing about TO
>> (reverse is wrong). So logically this functionality should be in TO. May
>> be, in Local processing. But I doubt it is needed at all.
>
> From my point of view, mapping-rules are also related to the
> template-object. Defining a stricter rule by id or by class would be
> very comfortable for working in teams and a nice addition to
> mapping-instructions.
Let's be logical here - I agree with Frederic, because mapping rules are
about mapping the DS to the TO, so they would not make any sense to be
thought only in conjunction with the DS. Also, the DS already 'knows'
something about the TO in that, e.g. it knows the mapping type and tag -
the class and/or id would be the next logical step, wouldn't it ? This
would really only allow a finer adjustment, not mess with underlying
principle.
>>> If it is not yet possible, why not?
>>
>> I think noone needed it and we all have limited time. There were/are
>> more important things. For example, I think default content for [empty]
>> sections is much more important feature for practical usage.
>
> Hm, maybe. For me, it would be important. Anyone else? Then I could
> implement a patch which is useful for others, too.
I guess Dmitry's right here in that some features are more important - but
I'd really appreciate that patch :)
>>> What do you think of this idea?
>>
>> Never needed it. Do not like it.
>
> Well, it would only add functionallity. Anyone has to use it.
>
> I have something in mind like:
>
> div.class:inner
> and div#id:inner
Totally agree with Frederic - as written above. I guess the .#-syntax is
the natural choice, isn't it ;)
More information about the TYPO3-project-templavoila
mailing list