How it Works

APICMS solves the traditional problems of CMS in a simple way!

Content and design are separated and there is a extremely simple structure in the admin panel.

APICMS runs completely independent and has nothing to do with the design of the site! All content and graphics which the user enters into the CMS can be accessed through a REST API and therefore integrates seamlessly into the existing design you have programmed! With the freely included client library (PHP, Python and Ruby in the works …), the programming work required to connect to the REST API is only 3 lines of code.

APICMS

888Casino BannerSchematic representation of the sequence

  1. The user opens your website which is located on your server. This one can be programmed as desired by you. (static HTML page or a dynamic PHP page)
  2. You have defined anywhere in the page a DIV containers in which the content is displayed. Menu, logo and layout are hardcoded in the HTML webpage you have programmed. The client library, supplied by APICMS, connects to the APICMS server (this is normally the same server on which your website runs, but it can be any other server!) to query the contents of the specific website.
  3. The APICMS software processes the request and retrieves the desired content (text, graphics) from the database.
  4. The content is now sent back to the website.
  5. As a result, the entire site with the content from the CMS which is now present in the DIV container is send to the visitor’s browser and then rendered. Most users (and robots and spiders of different search engines) does not notice it, that the content comes from a database and is not in the website source code available.

HTML / PHP sample code for a website homepage. In the code lines 17 and 19 is the call for APICMS

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

<html>

<head>

<title>My cool Website</title>

</head>

<body>

<div class=”header”>

<h1>This is my Website</h1>

</div>

<div class=”navigation”>

<ul>

<li><a href=”/”>Home</a></li>

<li><a href=”impress.php”>Impress</a></li>

</ul>

</div>

<div class=”content”>

<?php

include(“apicms.php”);

$apicms = new ApiCmsClient(“http://apicms.yourdomain.com“, “my_api_key”);
echo $apicms->content(“home”)->getHTML();

?>

</div>

<div class=”footer”>

Copyright by me, 2010

</div>

</body>

</html>

In this code, you can see that the large part of the site was programmed by the designer in normal static HTML code. In code line 15 starts the dynamic part. There is always the content of the various sites. The layout remains the same all around. With line 17, the client library from APICMS gets involved and on the next line a request is send to APICMS which requests the page “home”. With “getHTML()”, the entire text of the page will be collected and gets echoed into the DIV container.