Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Make a description for your category index page

 

 


Tinnie
User

Aug 9, 2007, 8:57 AM

Post #1 of 7 (7130 views)
Shortcut
Make a description for your category index page Can't Post

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.


(This post was edited by Tinnie on Aug 9, 2007, 9:21 AM)


Jake
Staff


Aug 10, 2007, 3:28 PM

Post #2 of 7 (7092 views)
Shortcut
Re: [Tinnie] Make a description for your category index page [In reply to] Can't Post

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. Smile
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


Tinnie
User

Aug 13, 2007, 4:27 AM

Post #3 of 7 (7041 views)
Shortcut
Re: [Jake] Make a description for your category index page [In reply to] Can't Post

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


Jake
Staff


Aug 13, 2007, 1:59 PM

Post #4 of 7 (7028 views)
Shortcut
Re: [Tinnie] Make a description for your category index page [In reply to] Can't Post

Hi Tinnie,

Thanks for your reply. Smile

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

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


faribaa
User

Apr 15, 2009, 2:20 PM

Post #5 of 7 (6646 views)
Shortcut
Re: [Jake] Make a description for your category index page [In reply to] Can't Post

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.


aussierewards
User

Apr 17, 2009, 1:51 PM

Post #6 of 7 (6623 views)
Shortcut
Re: [Jake] Make a description for your category index page [In reply to] Can't Post

Hi Jake,

Regarding your instruction "You could then add this new placeholder to your categoryIndex.html template," What would this placeholder look like?

Assuming the new field is called "Category Description", could you please post an example of how the placeholder would look and instructions

as to where it would be placed on the "Category Index Template" so that the description appears at the top of the Category Index Page.

Thanks for your help.

Cheers
Aussie


Donna
Staff / Moderator


Apr 20, 2009, 10:51 AM

Post #7 of 7 (6319 views)
Shortcut
Re: [aussierewards] Make a description for your category index page [In reply to] Can't Post

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