Difference between revisions of "Developer References"

From Contensive Wiki
Jump to: navigation, search
(Extending Contensive)
(Repairing a Microsoft Access Db)
Line 5: Line 5:
 
===Repairing a Microsoft Access Db===
 
===Repairing a Microsoft Access Db===
 
Use these steps to compact or repair an Access Db.
 
Use these steps to compact or repair an Access Db.
# this is the first step
+
# Open the Upgrade folder.
# this is the second step
+
# Shut down Contensive.
 +
# Turn off auto start in application manager.
 +
# Open the folder interpub/db and make a copy of the target database.
 +
# Open odbc32 --> select the system dsn tab --> push ADD --> select the appropriate driver (ms-access driver)--> push finish -->
 +
# select repair and find the newly copied db --> click ok --> close odbc
 +
# Go back into Interpub and copy the newly repaired db and rename it.
 +
# now go back into odbc32 select the system DSN--> select add to create a new dsn --> select the ms access driver --> select new db --> give it a new name (typically Incremented) --> click OK
 +
# open app manager and rename the connection string
 +
# restart contensive
  
 
==Extending Contensive==
 
==Extending Contensive==

Revision as of 15:29, 19 August 2015

Technical References

This section includes guides to typical technical tasks needed to host Contensive applications.

Repairing a Microsoft Access Db

Use these steps to compact or repair an Access Db.

  1. Open the Upgrade folder.
  2. Shut down Contensive.
  3. Turn off auto start in application manager.
  4. Open the folder interpub/db and make a copy of the target database.
  5. Open odbc32 --> select the system dsn tab --> push ADD --> select the appropriate driver (ms-access driver)--> push finish -->
  6. select repair and find the newly copied db --> click ok --> close odbc
  7. Go back into Interpub and copy the newly repaired db and rename it.
  8. now go back into odbc32 select the system DSN--> select add to create a new dsn --> select the ms access driver --> select new db --> give it a new name (typically Incremented) --> click OK
  9. open app manager and rename the connection string
  10. restart contensive

Extending Contensive

Contensive can be extended through two mechanisms, script programming on the hosting page and through Add-ons. Each has its advantages and drawbacks. Generally, using add-ons is the easiest and most versatile but in those cases where the add-on framework does not provide enough flexibility, writing scripts is always a fall-back.

Scripting the Host Page

Contensive does not run directly from the web server, but is instantiated from a framework running on the server, such as php. This way it can easily interface to any windows server platform, and be developed on top of any scripting system going forward. We currently use PHP, but ASP and ASPX are also supported.

Contensive creates the website document requested within the Contensive API, so the script page that initiates Contensive is used for the entire site, no matter what URL or content is requested. We call this the host page.

The easiest way to add functionality to the site through a host page script is to use replacement strings. Create an add-on that just leaves a unique string in the content, then in the host page, detect the unique string, run your functionality and replace it in.

Extending Contensive with Add-ons

An Add-on is a group of html, css, JavaScript, programming code, etc that when worked together, provide content or functionality for the site.

More Information

Developer Tutorials

Tutorials to provide a easy path for developers at Contensive and our clients to begin using our server framework.

Contensive Installation and Setup

Contensive SMS Architectural Overview

An overview of the system that include more a in-depth discussion of the available features.

Contensive API

Javascript API

Creating a custom login

Custom Editors

Creating Add-ons

Admin Framework API

Metadata (Content Definitions)

Creating Forms with Multiple Select Fields