Lille, enkel, smart! CMS uden database

CMSimple Dokumentation

Information    Dokumentation    Downloads    Forum
Du er her:   CMSimple > Working with CMSimple > Newsboxes
Danish Deutsch Englische CMSimple Website Französische CMSimple Website

Newsboxes

One of the features of CMSimple is the possibility to display the content of another CMSimple page as a so called "newsbox", e.g. in a sidebar outside the regular text area.

Because the page which provides the content of the newsbox should usually not be listed in the navigation, it is possible to "hide" it from the navigation

Creating a content page for a Newsbox

Create a CMSimple page, e.g. named "News02". Insert all the content that you want to appear later in the newsbox.

Hide the content page of the Newsbox

Put the following code anywhere on the page, preferably directly below the heading:

This code removes the page from the navigation.

You can also remove CMSimple pages from the navigation by using page_params. This plugin can be called with the tab "page" above the editor.

Integrate the Newsbox into the template

Integrate the newsbox into your template by entering the following code just where you want the newsbox to appear:

<?php echo newsbox('News02');?>

If you want to syle your newsbox(es) via CSS, you can embed the newsbox in html divs with CSS classes:

<div class="news">
<div class="newsin">
<?php echo newsbox('News01');?>
</div>
</div>
 
<div class="news">
<div class="newsin">
<?php echo newsbox('News02');?>
</div>
</div>
 
<div class="news">
<div class="newsin">
<?php echo newsbox('News03');?>
</div>
</div>

Define the classes .news and .newsin in the stylesheet.css of your template with the desired CSS attributes.

Delete the Newsbox from the Template

Simply delete in the template the code for the newsbox together with all surrounding divs.

Depending on your template the code may look different, the above code being just an example.

Example - Demo

As an example, take a look at the Newsboxes of these pages. Depending on the screen resolution, they are visible right or below the content area.


Nyheder

CMSimple 4.0.4

2013-01-03

CMSimple 4.0.4 er tilgængelig for download. Det er bare nogle små forbedringer i backend, en opdatering er ikke nødvendig.

Også en "let at installere" opdatering er tilgængelig.
CMSimple 4.0 => 4.0.4

download fra cmsimple.org »


CMSimple Projektet

2012-11-10

I begyndelsen af november 2012, købte Gert Ebersbach rettighederne til CMSimple og domænerne.

Han vil fortsætte udviklingen af CMSimple.

Services

ge-webdesign.de tilbyder:

 

Sponsor

Webdesigner og plugin programmører har mulighed for at få deres webside link på CMSimple.dk kontakt oplysninger findes under Impressum »


Støt gerne CMSimple.dk med en PayPal donation:

Noget andet

Charlataner

I den endeløse og enorme mængde på www er der nogle projekter, kaldet "CMSimple". Men en af disse udbydere er især uforskammet og kommer op med følgende besked:

CMSimple 3,5 er frigivet.

Dette er et svindelnummer og ikke sandt!

læs mere »

 

Powered by CMSimple| Template: ge-webdesign.de| Login