• Archived  

By Tinnie - August 9, 2007 - edited: August 9, 2007

If you have a lot of categories, like I do, it is nice to have a little description per category on top of the category index page. Ofcourse it is possible to do this in the template, but that means lot's of different templates. Here is what I did:

- Create a category Description

- Create articles with as a first category the category the description is for, and as second category the category Description

- Create a template for the description, which can be a simple as:
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->
<!-- templateIf: $article.category2num$ eq '102' -->
<strong>$article.title$</strong><br>
$article.summary$
<!-- /templateIf -->
<!-- /templatecell : articleRow -->


(read on for more about this 102)

- Create a publishing rule 'list of articles', multiple files, placeholder set name 'description', filename something like: include_description_<catNum>

- Now in your cat index include the includes you just made, with:
<!--#include virtual="$published.description.webpath$" -->

- In your article list in the category index make a templateIf to exclude the description in your listing. Mine is like this:
<!-- templateIf: $article.category2num$ ne "102" -->
where 102 equals the category 'description' and it is category2num because the first category is the category the description is for, the second category is 'description'.

Works for me!

Tinnie.

Re: [Tinnie] Make a description for your category index page

  • Archived  

By Jake - August 10, 2007

Hi Tinnie,

Thanks for sharing this information with the community!

Another option you could have used would have been to add a new field for "Category Description" for db_category in the Database Editor. You could then add this new placeholder to your categoryIndex.html template, and whatever information was filled in on the category edit/create page for this field would appear on your index pages.

I'm glad to hear you got everything set up how you'd like. [:)]
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Re: [Jake] Make a description for your category index page

  • Archived  

By Tinnie - August 13, 2007

Thanks Jake,

it sounds a lot easier, however it means only Admins can change the category description. I'll experiment with it. I never fiddled with the database before: Will this change become a problem when I want to update ArtMan?

Thanks again,



Tinnie

Re: [Tinnie] Make a description for your category index page

  • Archived  

By Jake - August 13, 2007

Hi Tinnie,

Thanks for your reply. [:)]

Adding a new field won't be a problem when upgrading the software - all of your custom fields will be carried over to later versions.

Thanks again for sharing your category description solution - it's a really creative way to give more user classes access to category descriptions!
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Re: [Jake] Make a description for your category index page

  • Archived  

By faribaa - April 15, 2009

I have created a category description fields in the category table, with a datatype of "Memo". Unlike memo fields in the article table, the category table memo fields do not have an in dept option such as field height or Editor type. As a result, when editing a category, you are left with a small input box to enter the description. I use dreamweaver to compose what I want to appear for description and paste the tags into the little box. It works, but my users are not comfortable with it.

Re: [aussierewards] Make a description for your category index page

  • Archived  

By Donna - April 20, 2009

Hi there,

A category placeholder generally looks like this:

$category.placeholdername$

So, if you created a new field called "Description", the placeholder would be:

$category.description$

Take a look at this tutorial for more details on customizing categories:


http://www.interactivetools.com/news/issue0056.html#3
Donna

--
support@interactivetools.com