[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [uk] [vi] [zh] Espace de traduction



June 2010

All the versions of this article:

The vider_attribut{attribut} filter (since SPIP 1.9) is a variant of the inserer_attribut filter. It is used to delete html attributes.
For example, we might want to reset an attribute before assigning it a specific value:


This code starts by completely removing the ’style’ attribute for a logo, before re-assigning it the desired value for width, with no explicit definition of any other possible style modifications that may have also have been "erased".

Show the template of this page Site powered by SPIP | Translation area | Private area