Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
4 Antworten
11294 Ansichten

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
Verwerfen
Autor

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 Antwort

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
Verwerfen
Autor Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
März 24
2858
1
Apr. 20
7843
4
Feb. 24
32596
0
Jan. 25
1027
2
Apr. 24
4768