Hi, I've been really enjoying the process of creating my Templates from Scratch and just either grabbing code from other templates or from that Tag list.
I created a simple, functioning Search Results page.
The only problem is that all the results display vertically, right down the page, one by one. This is because I have only put the basic loop into the Template.
I am wondering what code I would put to generate the results so they are 4 across, aligned and repeating for 4 rows until you have to go to the next page.
I am trying to make a deadline and need to figure this out some how. I have fooled around with it a bit by adding tags into my loop, but it just creates a mess on the page, here is the basic code working so far.
<h2 id="pageName">[--Store.SearchResults --]: [-- SearchString --]</h2><br>[-- Loop Search 4 --] [-- searchresult --] [-- end_loop search --]</td>
<div class="text1">
[-- IF SEARCHTOP --]
<div class="searchResultForm">
</div>
[-- END_IF --]
[-- VAR.anyresults "no" --]
[-- VAR.resultcount 0 --]
<table class="pa_products">
<tr>
[-- LOOP SEARCH --]
[-- VAR.anyresults "yes" --]
[-- IF SEARCHPRODUCT --]
[-- IF VAR.resultcount VAR.pr_cols --]
</td></tr><tr>
[-- VAR.resultcount 0 --]
[-- END_IF --]
[-- IF VAR.resultcount 0 --]
<td class="pa_product">
[-- ELSE --]
</td><td class="pa_product">
[-- END_IF --]
[-- VAR.resultcount INC --]
[-- END_IF --]
[-- IF SEARCHLINK --]
<div class="searchResultLink">
[-- SEARCHRESULT --]
</div>
[-- ELSE --]
<div class="searchResultPage">
<div></div>
</div>
[-- END_IF --]
[-- END_LOOP SEARCH --]
</td>
</tr>
</table>
[-- IF VAR.anyresults "no" --]
<h4>[-- Store.SearchNoResults --] [-- SearchString --]</h4>
[-- END_IF --]
</div>
[-- IF SEARCHBOTTOM --]
<div class="searchResultForm">
</div><!-- end searchResultForm -->
[-- END_IF --]
</div><!-- end text1 -->
[-- IF PAGE.Text3 --]
<div class="text3">
[-- PAGE.Text3 --]
</div>
[-- END_IF --]