Table of Contents

ARTICLE

How articles are made up

A category can contain one or many articles which will be displayed depending on the mode you choose.

An article is consisting of Article Head, Title, Subtitle, Time settings for switching visibility depending on date, Article Alias Name, Templates, Summary and pictures, one for the article itself, another one for the article listing mode, just to name a few important ones.

An Article now can contain one or many Content Parts (CPs).

Artikcle generally always output in the tag {CONTENT}.

Display modes

There are two modes, the one is called article display mode, the other is the article listing mode.

You can set up the mode by going to (ADMIN→Site Structure→Categoryname) for the complete category. The field Top article count: will define, which display mode will take place within this particular category.
There is a default for a simple display mode - you'll see a preset of -1. (this simply means that by default the complete article will be displayed with all content parts).

To get into article listing mode you'll simply enter a number > 0 which ist defining the number of displayed articles. (articles of this category will now be delivered showing their “Summary”- text only one after the other. In this list overview only the article heads (the “Summary”- text and a picture) is displayed without their CPs).

If you have e.g. 8 articles and in “top article count:” the number of 2 is selected, the “Summary”- text of the first 2 article is displayed. The other 6 articles are only displayed by a simple link.


The article head:

FIXME better translate

The title of the article head must be created. It automatically the alias of the article is formed, which can be replaced with a different name. <note tip>The system does not allow dual alias. If the entered alias already exist, autom. a -1/2/3 … is attached. → E.G. lummerland becomes lummerland-1. </note>

So now this article is first on the alias of the category and second on the alias of the article available.

Mode: Article detail display

This mode is certainly the most in use.

In the category the point top article count: is set to -1 (default).
site structure and article list

This is the minimum configuration of the article. For the article detail display mode, no additional settings are required.

Mode: Article list display

This mode is to be ideally over e.g. represented products or pieces of news in an overview briefly and scarcely.

In the category top article count: is set to >1 (eg, 10).

<note important> Hidden editing articles and CPs:

If the article and the following CPs are not to be visible during editing or creating in the FE, then may status: public [] in the article not set (down center).

Condition:
In config/phpwcms/conf.inc.php set $phpwcms['SESSION_FEinit'] = 1;. </note>

<note tip> If the image is not enlarged in the article list mode, just click on this image to view the details (complete presentation of the article) to be delivered. </note>


Wrapper for article-list -and detail view

Page template:

<div id="outer">
{CONTENT}
</div>


Article template:

<div id="outer">
    <div class="list-item">entry 1</div>
    <div class="list-item">entry 2</div>
    <div class="list-item">entry 3</div>
</div>


CSS:

#outer .list-item { /* whatever */ }


List-mode tags in main template:

<!--IF_LIST_MODE_START//--><div class="list-items"><!--IF_LIST_MODE_END//-->
<!--ELSE_LIST_MODE_START//--><div class="full-article"><!--ELSE_LIST_MODE_END//-->
{CONTENT}
<!--ELSE_LIST_MODE_START//--></div><!--ELSE_LIST_MODE_END//-->
<!--IF_LIST_MODE_START//--></div><!--IF_LIST_MODE_END//-->


Short link overview