Welcome on new-website demo img/16x16/gitlab.png Gitlab | img/16x16/konqueror.png Demo website
new-website is a kind of simplified CMS
new-website is a free software available under GNU Affero General Public License 3+
data_demo/header.png
img/32x32/newspaper.png News
img/32x32/info.png How to
img/32x32/telepathy.png Contact
img/32x32/world.png Links

img/48x48/info.png How to

Articles to know how use and modify new-website.

img/48x48/newspaper.png Redaction

The user can modify content of data directory. If the modification of files in other directories is needed, you should consider contribute to new-website.

Add a section

To add a section, create a directory in data directory with a specific format: xx_name_of_section with xx an integer to sort section for display. This integer does not appear in the website, nor the url.

Within the section directory add a PHP file named include.php with the following code:

<?php
    
    $section_title = 'Section name';
    
    $section_img = 'section_icon.png';
    
    $section_main = true; // To display section in header menu
    
    $section_secondary = false; // To display section in menu
    
?>'

Within the section directory add a PHP file named article.php with the following code:

<article>
    
    Type the article of the section using HTML and PHP.
    
</article>'

Add an article

The creation of an article and a section is very similar.
To add an article, create a directory in the section directory using the previous format: xx_name_of_section with xx.

Within the article directory add a PHP file named include.php with the following code:

<?php
    
    $page_title = 'Article title';
    
    $page_img = 'article_icon.png';
    
    $page_description = 'Article description';
    
    $page_link_in_menu = true; // To display article in menu
    
?>'

Within the article directory add a PHP file named article.php with the following code:

<article>
    
    Type the article using HTML and PHP.
    
</article>'


img/32x32/newspaper.png Other pages:
img/32x16/man_and_woman.png Utilization (Specification of this website)
img/32x16/newspaper.png Redaction (How write an article)
img/32x16/adjustable_wrench_and_screwdriver.png Modification & Contribution (How modify / contribute to new-website)