Hi, Im after some help with the use of category related posts and displaying in to a template.
I have 4 category groups each with categories within that I’m using to create a navigation system.
Pulling in the categories to create the list is fine, which Im doing using the markup below:
<nav id="secondarynavigation">
{exp:channel:categories channel="products" category_group="1" show_empty="yes" }
<a href="http://{title_permalink=%27product%27}" title="Go to {category_name}">» {category_name}</a>
{/exp:channel:categories}
</nav>However, Im having trouble creating the link that each category creates, ie Im trying to use the ‘permalink’ to push the category related posts out to a template, in this case the template is named ‘product’.
The above outputs
http://www.thermoplasticdesignsandlines.co.uk/{title_permalink='product'}
This makes me assume the permalink method is not working for what I’m trying to achieve?
Also, once the linking is working, I want the template ‘product’ to display just the content that relates to the category that was clicked.
Below is the excerpt from the ‘product’ template - would I need to call up anything that relates to the categories within the channel entries tag, or would it be as below?
<div id="rightcolumnproducts">
{exp:channel:entries channel="products" sort="asc|desc" orderby="title"}
{if count == "1"}
<h3 id="productsforschools">Alphabet & Numbers</h3>
{/if}
<div class="productschools_{count}">
{exp:imgsizer:size src="{product_image}" height="115" width="185"}
{sized}
{/exp:imgsizer:size}
<h4 class="schoolsheading">{title}</h4>
{product_summary}
<span>Size:</span> {product_size}
<span>Price:</span> £{product_price}
</div>
{/exp:channel:entries}
<div class="clear"></div>
</div>Really appreciate any help that can be given on this, having a right nightmare getting to grips with the whole usage of categories….maybe Im just missing the obvious lol.
Thanks in advance
Scott