Integration Methods

The jsHarmony CMS can be integrated into custom PHP applications in a variety of ways.  Capabilities will vary based on the integration method:

Integration Method Pages Generated As Add Pages Add Media Add Redirects Add Page URLs outside Content Folder
Simple Content Folder HTML
Router - Static HTML HTML
Standalone JSON N/A N/A

 

Simple Content Folder
  • Generate static HTML pages in a subfolder of the site, based on static HTML templates.
  • Work Involved: Very Easy - no SDK required

    View Integration Tutorial

Router - Static HTML
  • Generate static HTML pages in a subfolder of the site, based on static HTML templates.
  • Includes a Router to enable:
    • Page URLs anywhere in the site
    • Redirects defined in CMS
  • Work Involved: Easy - minimal integration required

    View Integration Tutorial

Standalone
  • Add CMS content to an existing page in the site
  • Generate a JSON object for that page on publish
  • On page view:
    • Load the JSON object and render it in the server-side template
  • Work Involved: Easy to Medium, based on site complexity

    View Integration Tutorial


Redirect Regular Expression Syntax

The syntax for Redirect regular expressions is specific to the deployment environment.  The PHP SDK uses PCRE Regular Expression syntax.

Back-references are implemented using $N.  For example, "$1" replaces the first matched group, "$2" replaces the second matched group, and so on.

Below is an example of RegEx variable replacement, using the PHP SDK:

URL:         ^/products/([a-zA-Z]*)$
Destination: /view_product?id=$1

SDK Documentation

Explore the SDK Documentation and source code at the Github site: jsharmony-cms-sdk-php.

 

Loading
Loading