Article Types
By Paul
By Paul
By default, you have [Manual Only]one type of item: regular[/Manual Only]. Suppose you wish to create another group called 'myarticlegroup'.
First, go to Admin Panel -> Settings -> Links. Find 'Article Types' near the top. Add a comma after the existing type(s) you see there, and type your new group (do not leave a space). In this case, we'll be adding ',myarticlegroup'. You can also set a display name here if you want that to be different from the name used in templates. Save your settings.
Next, edit your 'show articles in category' template. In order to create a unique style for this article type (by default it shows with the same HTML as regular articles), copy the style which has been used for regular articles and change it to fit what you wish for your new group. For example:
You will also need to make use of this article type in your 'search all' and 'search articles' templates. In these templates, the HTML is similar but you should use slightly different opening and closing comments:
If you have set 'mix article types' to 'no' in your settings, the articles of this type will appear in the results in the position where you put the HTML. Thus if you plut your new group on top, the articles of this type would show up above all others. If you set 'mix article types' to 'yes' in your settings, then the results will be mixed so that the position is determined only by the sort order and not by the type of article -- but each article will still be displayed using the HTML of its particular type, so that it's distinguished.
Using Only One Article Type
Sometimes, people don't want to use multiple link types. The best way to handle this is to simply switch off article types at Admin -> Settings -> Articles. This will make everything be considered a regular article with no prompt for the type.
First, go to Admin Panel -> Settings -> Links. Find 'Article Types' near the top. Add a comma after the existing type(s) you see there, and type your new group (do not leave a space). In this case, we'll be adding ',myarticlegroup'. You can also set a display name here if you want that to be different from the name used in templates. Save your settings.
Next, edit your 'show articles in category' template. In order to create a unique style for this article type (by default it shows with the same HTML as regular articles), copy the style which has been used for regular articles and change it to fit what you wish for your new group. For example:
<!-- BEGIN MYARTICLEGROUP ARTICLES -->
<blink><b>Extra special type of article: <a href="{TRACKARTICLEURL}" 2;{ARTICLETITLE}</a></b> </blink> <br />
<!-- END MYARTICLEGROUP ARTICLES -->
You will also need to make use of this article type in your 'search all' and 'search articles' templates. In these templates, the HTML is similar but you should use slightly different opening and closing comments:
<!-- BEGIN MYARTICLEGROUP -->
<blink><b>Extra special type of article: <a href="{TRACKARTICLEURL}" 2;{ARTICLETITLE}</a></b> </blink> <br />
<!-- END MYARTICLEGROUP -->
If you have set 'mix article types' to 'no' in your settings, the articles of this type will appear in the results in the position where you put the HTML. Thus if you plut your new group on top, the articles of this type would show up above all others. If you set 'mix article types' to 'yes' in your settings, then the results will be mixed so that the position is determined only by the sort order and not by the type of article -- but each article will still be displayed using the HTML of its particular type, so that it's distinguished.
Using Only One Article Type
Sometimes, people don't want to use multiple link types. The best way to handle this is to simply switch off article types at Admin -> Settings -> Articles. This will make everything be considered a regular article with no prompt for the type.
Rating:




3.63/5 based on 8 votes. The median rating is 4.
Rate this article:
Submitted: 09/25/03 (Edited 04/06/08)
Description: Adding a new group of articles.
Views:
6349 views. Averaging 4 per day.
In the most recent 30 day period, there've been 4 views.

Print
E-Mail