Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
11299 Weergaven

I was trying to replace classes with position="attributes" but it dosen't work. it seems to be a bug.

This dosen't works

  <xpath expr="//div[@id='mid-header-bottom-left']" position="attributes">    <attribute name="class">"col-md-3 col-sm-2 oe_structure"</attribute>  </xpath>

This Does

  <xpath expr="//div[@id='mid-header-bottom-left']" position="attributes">    <attribute name="name">this shows</attribute>  </xpath>

So , 

  • The selector is correct

  • The attribute "name" can be assigned

  • The attribute "class" cannot be replaced

Avatar
Annuleer
Auteur

Cannot comment on ur reply @hilar AK so , i write here. ur anser is same with me

Hilar's answer isnot same as yours. There is no double quotes in the new class

You don't need to give CSS within quotes while using attributes tag, where attribute tag itself takes it as a string.

Beste antwoord

Try


  <xpath expr="//div[@id='mid-header-bottom-left']" position="attributes">    <attribute name="class">col-md-3 col-sm-2 oe_structure</attribute>  </xpath>
Avatar
Annuleer
Auteur Beste antwoord

thanks finally got it working , it is due to inheritance : the template with override with same css by other module developed by other dev

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 24
2859
1
apr. 20
7843
4
feb. 24
32597
0
jan. 25
1028
2
apr. 24
4770