Hello,
I'm not able to add unique titles and to my products category pages (the pages that display all of the products in a category).
For example I have a category named "shoes" and it displays 5 shoe products. I'm able to produce unique titles for the individual 5 products but not for the "shoes" category.
I can add field data to categories in the admin and get the field data to show on the category list page (the page that lists all of the categories) but not on the individual category page.
Any help would be appreciated.
Thanks.
Monte
Unique Titles for Product Category Pages
-
- Forum Members
- Posts: 64
- Joined: Wed Jul 03, 2013 7:44 pm
Re: Unique Titles for Product Category Pages
I'm not too familiar with Products but I did a bit of testing. If you put {get_template_vars} in the template you'll see the category fielddefs are accessible from each product. There might be a better way but it's a start - in your item category loop you can get the fielddef value with something like:
{foreach from=$category->data item='field'}
{$field.field_value}
{/foreach}
Remember you can use {$field|print_r} to see what else is available to $field, or any other array.
If you only want to display the fielddef info for the category you're showing, you'll need to do it a bit differently.
{foreach from=$category->data item='field'}
{$field.field_value}
{/foreach}
Remember you can use {$field|print_r} to see what else is available to $field, or any other array.
If you only want to display the fielddef info for the category you're showing, you'll need to do it a bit differently.
Not getting the answer you need? CMSMS support options
-
- Forum Members
- Posts: 64
- Joined: Wed Jul 03, 2013 7:44 pm
Re: Unique Titles for Product Category Pages
Thank you! I'll give this a try.