Aller au contenu principal Aide Panneau de contrôle

A+   A-

Logiciel serveur «  

Documentation : configure.php

configure.php - The configuration panel for the front page

This configuration panel manages following parameters:

-  root_cover_at_home - Either 'full', 'body' or 'none'. By default YACS displays the title and the content of the cover article at the front page. Select 'body' to mask the title of the cover page. And use 'none' to not display any cover article.

-  root_sections_count_at_home - Specify explicitly the number of sections to list at the front page. Default value is 5.

-  root_sections_at_home - Either 'root', or 'none', or some section id. By default YACS lists content of root sections. Else put the id of the section you would like to focus on at the front page. Or disable explicit listing of sections if you use a skin that features dynamic tabs, based on sections.

-  root_sections_layout - Either 'menu', or another layout. By default YACS lists top sections as a menu bar. Use 'map' to reflect the site map at the front page.

-  root_flash_at_home - Insert a Flash object to animate recent titles

-  root_gadget_boxes_at_home - Display gadget boxes at the front page. Due to the special layout used for gadget boxes, there is a fixed maximum of 6 gadget boxes.

-  root_articles_layout - Select the layout to use for articles at the home page. Following values may be selected:
  • 'alistapart' - Display only the most recent published page.
Previous articles may be accessed through a menu. This layout is suitable for small sites with a low activity, maybe with a single section of pages. Implemented at skins/layout_home_articles_as_alistapart.php.
  • 'boxesandarrows' - List the last ten most recent pages.
Previous articles may be accessed through sections, or through the index of articles. This layout is suitable for sites providing several different kinds of information. Implemented at skins/layout_home_articles_as_boxesandarrows.php.
  • 'compact' - A simple list of titles.
Implemented at articles/layout_articles_as_compact.php.
  • 'daily' (this is also the default value) - Make titles out of publication dates.
This layout is suitable for weblogs. It is the default value. Implemented at skins/layout_home_articles_as_daily.php.
  • 'decorated' - A compact table featuring the introduction and thumbnail.
This layout is suitable for sites with a lot of items (gadget boxes, etc.) at the front page. Implemented at articles/layout_articles.php.
  • 'digg' - To show evidence of rating.
Implemented at articles/layout_articles_as_digg.php.
  • 'newspaper' - Focus on the last published article, and list some articles published previously.
This layout is suitable for most sites. Implemented at skins/layout_home_articles_as_newspaper.php.
  • 'no_articles' - Do not mention recent articles.
Use this option to fully customize the front page, for example through some hook.
  • 'slashdot' - List the last ten most recent pages.
Previous articles may be accessed through sections, or through the index of articles. This layout is suitable for sites providing several different kinds of information. Implemented at skins/layout_home_articles_as_slashdot.php.
  • custom value - useful to implement an external layout.
YACS expects to have custom layout foo implemented in skins/layout_home_articles_as_foo.php.

-  root_articles_count_at_home - Specify explicitly the number of articles to list at the front page. By default YACS uses the value related to the selected layout.

-  home_with_recent_files - List most recent files at the front page

-  home_with_recent_links - List most recent links at the front page

Parameters for the extra panel of the front page:

-  root_featured_layout - Either 'static', or 'scroll', or 'rotate', or 'none'. By default YACS lists featured articles as a static list. Use 'scroll' to animate things.

-  root_featured_count - Specify explicitly the number of featured articles to list at the front page.

-  root_news_layout - Either 'static', or 'scroll', or 'rotate', or 'none'. By default YACS lists news articles as a static list. Use 'scroll' to animate the news.

-  root_news_count - Specify explicitly the number of news to list at the front page.

-  home_with_older_articles - List in a side box articles older that those featured in the main area.

-  home_with_peering_servers - Display a list of servers that have pinged us recently.

-  home_with_random_articles - Display a list of random pages.

-  home_with_recent_poll - List the current poll at the front page

-  home_with_top_articles - List most read articles at the front page

-  home_with_top_files - List most fetched files at the front page

-  home_with_top_links - List most clicked links at the front page

Access to this page is reserved to associates.

Configuration information is saved into parameters/root.include.php. If YACS is prevented to write to the file, it displays parameters to allow for a manual update.

The file parameters/root.include.php.bak can be used to restore the active configuration before the last change.

If the file demo.flag exists, the script assumes that this instance of YACS runs in demonstration mode. In this mode the edit form is displayed, but parameters are not saved in the configuration file.

This script is a reference file of this system.

Licence : GNU Lesser General Public License

Auteurs :


tn