Blog Filtering

Here is a list of the available ways to find a specific blog.

Categories

You can show the list of categories that are assigned to a blog using the below

{foreach from = $blog_categories item=info}
	<li><a href="{$info.url}">{$info.category_name} ({$info.total_posts})</a></li>
{/foreach}

Authors

You can show the list of authors that are assigned to a blog using the below

{foreach from = $blog_authors item=info}
	<li><a href="{$info.url}">{$info.author_name} ({$info.total_posts})</a></li>
{/foreach}

Tags

You can show the list of tags that are assigned to a blog using the below

{foreach from = $blog_tags item=info}
	<li><a href="{$info.url}">{$info.tag_name} ({$info.total_posts})</a></li>
{/foreach}

Dates

If you would like to show a list of all the unique months/years where blogs were created, you can use the below.  

{foreach from = $blog_archive_list item=info}
	<li><a href="{$info.url}">{$info.date} ({$info.total_posts})</a></li>
{/foreach}

Search

You can search blog posts using the below form.  Please be aware that we have left this using Site Text, which you will need to ensure exists if you are copying/pasting this directly.  

    <h3>{site_text page="Blog" part="Title: Search" }</h3>
    <form method="get" action="" class="searchform">
        <fieldset>
            <legend>{site_text page="Blog" part="Label: Blog Search" }</legend>
            <p>
            <label for="productsearch" class="hide_label">{site_text page="Blog" part="Label: Blog Search" }</label><input type="text" class="template_blog_textfield" name="blog_search" id="productsearch" />
            <span class="template_blog_button"><input class="template_button blogsearch_button" type="submit" name="blog_search_button" value="Go" /></span>
            </p>
        </fieldset>
    </form>