Last active
December 27, 2015 20:59
-
-
Save objectivehtml/7388370 to your computer and use it in GitHub Desktop.
Channel Search - Creating Custom URL's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Types of Locations</h3> | |
<ul> | |
<li><a href="/channel-search/examples/creating-custom-urls">All Locations</a></li> | |
<li><a href="/channel-search/examples/creating-custom-urls/restaurants">Restaurants</a></li> | |
<li><a href="/channel-search/examples/creating-custom-urls/lodging">Logding</a></li> | |
<li><a href="/channel-search/examples/creating-custom-urls/landmark">Landmarks</a></li> | |
<li><a href="/channel-search/examples/creating-custom-urls/park">Parks</a></li> | |
</ul> | |
<hr> | |
<h3>Results</h3> | |
{exp:channel_search:set name="type"}{segment_4}{/exp:channel_search:set} | |
{exp:channel_search:results id="Basic Usage Multi"} | |
{if no_results} | |
<p>No locations were found</p> | |
{/if} | |
{if is_first_row} | |
{if prev_page || next_page} | |
<div class="pagination right"> | |
{if prev_page_url} | |
<a href="{prev_page_url}"><i class="icon-circle-arrow-left"></i> Prev Page</a> | |
{/if} | |
{if next_page_url && prev_page_url} | |
| | |
{/if} | |
{if next_page_url} | |
<a href="{next_page_url}">Next Page <i class="icon-circle-arrow-right"></i></a> | |
{/if} | |
</div> | |
{/if} | |
<div class="search-stats"> | |
<p> Showing page {current_page} of {total_pages} ‐ ({grand_total} Result{if grand_total != 1}s{/if} Found)</p> | |
</div> | |
<table> | |
<thead> | |
<tr> | |
<th width="25%">Photo</th> | |
<th width="35%">Title</th> | |
<th>Address</th> | |
</th> | |
</tr> | |
</thead> | |
{/if} | |
<tbody> | |
<tr> | |
<td>{poi_photo}</td> | |
<td><b>{title}</b> <p><em>{poi_keywords}</em></p></td> | |
<td><p>{poi_formatted_address}</p> <p><em>{poi_map parse="markers" limit="1"}{markers}{marker:latitude}, {marker:longitude}{/markers}{/poi_map}</em></p></td> | |
</tr> | |
</tbody> | |
{if is_last_row} | |
</table> | |
{if prev_page || next_page} | |
<div class="pagination right"> | |
{if prev_page_url} | |
<a href="{prev_page_url}"><i class="icon-circle-arrow-left"></i> Prev Page</a> | |
{/if} | |
{if next_page_url && prev_page_url} | |
| | |
{/if} | |
{if next_page_url} | |
<a href="{next_page_url}">Next Page <i class="icon-circle-arrow-right"></i></a> | |
{/if} | |
</div> | |
{/if} | |
{/if} | |
{/exp:channel_search:results} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment