TABLE OF CONTENTS
Download & License |
Installation |
What Is This? |
Content Database |
Content Functions |
API Functions |
DOWNLOAD & LICENSE
Download Core Boxx Contents Module | Source Forge
Core Boxx is released under the MIT License. You are free to use it for your own personal and commercial projects, modify it as you see fit. On the condition that there the software is provided “as-is”. There are no warranties provided and “no strings attached”. Code Boxx and the authors are not liable for any claims, damages, or liabilities.
INSTALLATION
Download and set up the “main Core Boxx” if you have not already done so. To “install”, simply import the contents.sql
file, and delete it afterward.
WHAT IS THIS MODULE?
This is a simple dynamic content module for Core Boxx. Articles, posts, code snippets, descriptions – Save whatever content you need into the database and retrieve it dynamically.
CONTENT DATABASE TABLE
Function | Description & Quick Example |
content_id |
Primary key, the content ID. |
content_title |
Title or short description of the content. |
content_text |
Text or body of the content. |
date_created |
Date when the content is created. |
date_modified |
Last modified timestamp. |
CONTENT LIBRARY FUNCTIONS
Function | Description & Quick Example |
save($title, $text, $id) |
Add or update content.
|
del($id) |
Delete a piece of content.
|
get($id) |
Get a piece of content.
|
getAll() |
Get all content.
|
search($search) |
Search for content containing the search term.
|
toFile($id) |
An incomplete support function for save() , generate a static file. Complete it if you want, good for HTML, CSS, Javascript, or maybe files that you want to offer for download.
|
CONTENTS API
Accessible at http://yoursite.com/api/content/REQUEST/
. These are pretty much a replica of the above library functions, except in REST API format. Feel free to delete api/content.php
if you don’t intend to integrate an API.
Request | Description & Quick Example |
save |
Add or update content.
|
del |
Delete a piece of content.
|
get |
Get a piece of content.
|
getAll |
Get all contents. |
search |
Search for a piece of content.
|