I have a result page where I want to divide the result presentation up in 2 different columns. One pulls out only stuff from channel 1, and the other one from channel 2,3,4 and 5.
I have tried the allow_repeats="yes"
, but none of the loops show any results.
However, if I remove one of the {exp:super_search:results}
on the page, it works fine (for the {exp:super_search:results}
that's still on the page that is.
Can't wrap my head around it >_<.
<section id="search">
<section class="container-wide">
<!-- TOP CONTAINER -->
<section class="search-article">
<div class="column--twelve">
<h5>resultat för sökningen efter</h5>
<h1>"{super_search_keywords}"</h1>
</div>
<!-- VÄNSTER KOLUMN -->
<div class="column--six-left">
<div class="divider"><div><span>Produkter</span></div></div>
<div class="search--result-products">
<style>mark {background-color:#FFEB4F;}</style>
{exp:super_search:results channel="produkter" highlight_keywords="mark" allow_repeats="yes"}
{!-- loop 1 --}
<div class="produkt">
<a href="{title_permalink='produkt'}">
{exp:ce_img:pair src="/assets/images/uploads/produkt_images/{produkt_huvudbild}" max="350" crop="yes"}
<img src="{made}" />
{/exp:ce_img:pair}
</a>
<h5><a href="{title_permalink='produkt'}">{varumrke}</a></h5>
<h2><a href="{title_permalink='produkt'}">{title}</a></h2>
</div>
{/exp:super_search:results}
</div>
<!--div>
<div class="show--more"><div class="button"><a href="">Visa fler produkter</a></div></div>
</div-->
</div>
<!-- END VÄNSTER KOLUMN -->
<!-- HÖGER KOLUMN -->
<section class="column--six-right">
<div class="divider"><div><span>Beauty/Varumärke/Utbildningar</span></div></div>
<div class="search--beauty-holder">
{exp:super_search:results channel="beauty_k|beauty_l|beauty_li|utbildning|varumarke" highlight_keywords="mark" status="open" allow_repeats="yes"}
{!-- loop 2 --}
{if channel_short_name == "beauty_k"}
<div class="single">
<div class="bild">
<a href="{title_permalink='beauty/artikel'}">
{exp:ce_img:pair src="{huvudbild}" max="350" crop="yes"}
<img src="{made}" />
{/exp:ce_img:pair}
</a>
</div>
<div class="text"><h5>{liten_rubrik}</h5><h2><a href="{title_permalink='beauty/artikel'}">{title}</a></h2><p>{kort_beskrivning}</p></div>
</div>
{/if}
{if channel_short_name == "beauty_l"}
<div class="single">
<div class="bild">
<a href="{title_permalink='beauty/artikel'}">
{exp:ce_img:pair src="{huvudbild}" max="350" crop="yes"}
<img src="{made}" />
{/exp:ce_img:pair}
</a>
</div>
<div class="text"><h5>{liten_rubrik}</h5><h2><a href="{title_permalink='beauty/artikel'}">{title}</a></h2><p>{kort_beskrivning}</p></div>
</div>
{/if}
{if channel_short_name == "beauty_li"}
<div class="single">
<div class="bild">
<a href="{title_permalink='beauty/artikel'}">
{exp:ce_img:pair src="{huvudbild}" max="350" crop="yes"}
<img src="{made}" />
{/exp:ce_img:pair}
</a>
</div>
<div class="text"><h5>{liten_rubrik}</h5><h2><a href="{title_permalink='beauty/artikel'}">{title}</a></h2><p>{kort_beskrivning}</p></div>
</div>
{/if}
{if channel_short_name == "utbildning"}
<div class="single">
<div class="bild">
<a href="{title_permalink='utbildning'}">
{exp:ce_img:pair src="{ut_huvudbild}" max="350" crop="yes"}
<img src="{made}" />
{/exp:ce_img:pair}
</a>
</div>
<div class="text"><h5>{ut_liten_rubrik}</h5><h2><a href="{title_permalink='utbildning'}">{title}</a></h2><p>{ut_kort_beskrivning}</p></div>
</div>
{/if}
{if channel_short_name == "varumarke"}
<div class="single">
<div class="bild">
<a href="{title_permalink='varumarke'}">
{exp:ce_img:pair src="{v_huvudbild}" max="350" crop="yes"}
<img src="{made}" />
{/exp:ce_img:pair}
</a>
</div>
<div class="text"><h5>{v_liten_rubrik}</h5><h2><a href="{title_permalink='varumarke'}">{title}</a></h2><p>{v_ingress}</p></div>
</div>
{/if}
{/exp:super_search:results}
</div>
<!--div>
<div class="show--more"><div class="button"><a href="">Visa mer från beauty</a></div></div>
</div-->
</section>
<!-- END HÖGER KOLUMN -->
</section>
<!-- TOP CONTAINER -->
</section>
{embed="site/_banner-vert"}
{embed="site/_recomended"}
Any help would be greatly appreciated.
Using EE 2.10.x, so I'm not using the super search 3.0 version.
Super Search 2.2.3 for EE 2.x
. Will try without CE Image now, let me get back.http://www.mysite.som/index2.php/search/results/search&keywords=Blommor/
... Grateful for any help I can get.{exp:super_search:results}
code insuper_search_main/keyword_results
but with different channels? I tried that and both results displayed fine. Also,allow_repeats=""
wouldn't do much because results should be coming from different channels.{if super_search_no_results}...{/if}
conditional in there to see if at least that is outputting in both your{exp:super_search:results}
tag pairs.