Forum Discussion

tonongregory's avatar
10 years ago

Call desktop version of a component in layout XML (for mobile search)

Is it possible to call a component and force display mode like

 

<add to="main-content">
    <component id="search-content" display-mode="desktop"/>
  </add>

 

I need to add some datas on mobile results page like desktop result page ( hilighted in desktop view screenshot)

 

Thanks


Lithium.png
  • Did you give it a try? I think if the names are different, you can call them directly but in case they are same, you won't be able to do this. Moreover, there would be a lot of content which would be in the desktop component, so I am not 100% on this.
    • tonongregory's avatar
      tonongregory
      Guide

      I try to add desktop component named search-encapsulation

      But i have an exception in front.