News Publisher > Documentation > Integration Guideline
One of our product uniqueness is we made our scripts capable to fit into your existing web design.
|
 |
 |
 |
 |
 |
Before |
|
After Integration |
Step 1 : Create new PHP page |
Create a web page where you would like to publish your news & announcements. Save the web page file with .php extension, such as news.php.
Note: You can separate the news and announcements section in two different web pages. All you need to do is create two web pages such as news.php, and announcement.php
The .php files can be uploaded in a same directory on your web server, it can be either web root directory or any directory of your choice.
|
Step 2 : Find document path |
To ensure that your News Publisher works regardless the location of your web page, you will need to add your server's Document Path to all the PHP include codes.
To find the Document Path, open the ' /oneadmin/config.php ' file with your text editor, and note this path down. Let's assume the Document Path is C:/wwwroot/user/oneadmin/
|
Step 3 : Call 'config.php' |
Insert the codes as below to your web page file to call the 'config.php', 'session.php' and 'css.php'. This will load all the necessary database connection, class declaration files and css control. To do this, open the newsa.php or announcement.php file with a text editor, and put it to the topmost line (line 1) of the php file, without any preceded character.
<?php
include_once ("C:/wwwroot/user/oneadmin/config.php");
include_once ("C:/wwwroot/user/oneadmin/common/session.php");
include_once ("C:/wwwroot/user/oneadmin/common/css.php");
?>
Step 4 : Display news article and announcement in the content area |
Now open your .php file with a text editor. Insert the following code into the area that you want the news categories and archives listing to display.
<?php include("C:/wwwroot/user/oneadmin/newspublish/home.menu.php"); ?>
Meanwhile, to display the news's content area such as news title, full article page, put the line below.
<?php include("C:/wwwroot/user/oneadmin/newspublish/home.news.php"); ?>
|
Next, use the following code to display the announcement section.
<?php include("C:/wwwroot/user/oneadmin/newspublish/home.announce.php"); ?>
|
Step 5 : View integration result |
Now, proceed to your web page URL, eg: ' http://your-domain-name/news.php ' to view the front-end integration result.
To preview your sample news and announcement front-end in real time, click on the 'front-end' link on the top right menu from within the One Admin panel.
|
Back to the top
|
|
|
• |
Risk Free Trial |
• |
Free Installation |
• |
Cost Saving Discount |
• |
24/7 Secure Ordering |
|
"Thank you for your help with this so far. Your applications are exactly what I've been looking for for some time now: the ability to slot the functionality of the application transparently into an existing site template using includes rather than having to modify an existing template is just what the doctor ordered!!"
- Nathan Nelson, http://www.spikydog.com |
|