facebook: the meeting point   ebay: the market place   CMSimple: your home at the www

CMSimple - Documentation

information  documentation  downloads  forum
You are here:   Home > Working with CMSimple > Newsboxes
top
Page
Menu
News
German CMSimple Website English Danish

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.


« prev top next »
top
Page
Menu
News
top
Page
Menu
News

CMSimple News

CMSimple is ready for php 7
CMSimple 4.6.3 published

2016-05-30

CMSimple 4.6.3 is ready for Download. A small security problem was solved, an update is recommended.

Also an "easy to install" update CMSimple 4.0 => 4.6.3 is available.

Download Area »

CMSimple Hosting

USA & Canada:

Link to CMSimple Hosting

You have nothing yet? No domain, no webspace, no idea? Or your provider annoys you with bad services? So this is your solution:

Get CMSimple preinstalled on high performance serverspace!

  • 1-Click-Installation possible
  • No download necessary
  • No installation necessary

Login - change password - work

more information »

Services

Just to avoid misunderstandings: The firms listed below are no hotlines for free. Therefor the forum » is available.


ge-webdesign.de offers:

ge-webdesign.de

Sponsors Area


Thanks a lot to all the longtime sponsors of CMSimple.

Become a CMSimple Sponsor »

You also can support CMSimple by a PayPal donation:

Templates

Responsive templates are suitable for all visual output devices, from smartphones up to HD screen.

Test the responsive templates of ge-webdesign.de:

Demos & Downloads »

Plugins

With plugins you can extend the functionality of CMSimple. There are Blogs, Comments, Photo Galleries, MultiMedia, MembersArea and much more.

Here you can find demos for most of the available plugins:

Demos & Downloads »