Utilizing DOCStudio dynamic templates in non-plugin applications

Similar documents
Fasthosts ASP scripting examples Page 1 of 17

Website Development Komodo Editor and HTML Intro

Gravity Forms: Creating a Form

In this chapter, you will learn how to...

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Contents. Downloading the Data Files Centering Page Elements... 6

Put your Website to work to attract the new customer. Catherine Turner

Application Note. Building a Website Using Dreamweaver without Programming. Nan Xia. MSU ECE 480 Team 5

An Newsletter Using ASP Smart Mailer and Advanced HTML Editor

Managing Users, Roles, and Domains

This help document will demonstrate the usage of the website.

The Essential Guide to HTML Design

Setup and Administration for ISVs

Cascade Server CMS Quick Start Guide

Code View User s Guide

Wellesley College Alumnae Association. Volunteer Instructions for Template

Overview. How It Works

Adding Links to Resources

Technical Specifications (Excerpt) TrendInfoWorld Web Site

COGNOS REPORTING SYSTEM USER GUIDE

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Basic tutorial for Dreamweaver CS5

Startup Guide. Version 2.3.9

Coding HTML Tips, Tricks and Best Practices

Building Qualtrics Surveys for EFS & ALC Course Evaluations: Step by Step Instructions

Using The HomeVision Web Server

My Program Admin Training Manual

Website Builder Overview

Upload Center Forms. Contents. Defining Forms 2. Form Options 5. Applying Forms 6. Processing The Data 6. Maxum Development Corp.

How to Create a Custom TracDat Report With the Ad Hoc Reporting Tool

Student Manager s Guide to the Talent Management System

Getting Started with WebSite Tonight

Using the Content Manager

Dreamweaver and Fireworks MX Integration Brian Hogan

CHAPTER 11 LEGAL ACCOUNTING MODULE 11.0 OVERVIEW 11.1 REQUIREMENTS AND INSTALLATION Special Requirements

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

ADOBE ACROBAT 7.0 CREATING FORMS

How to Create a Mobile Responsive Template in ExactTarget

SizmekFeatures. HTML5JSSyncFeature

Staying Organized with the Outlook Journal

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

How to Set-Up your Pay Pal Account and Collect Dues On-Line

GUIDE TO CODE KILLER RESPONSIVE S

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

Combe Abbey School Online Fixtures Diary

An overview of designing HTML s for Hotmail, Yahoo, Outlook, Lotus Notes and AOL

The Essential Guide to HTML Design

REUTERS/TIM WIMBORNE SCHOLARONE MANUSCRIPTS COGNOS REPORTS

DREAMWEAVER BASICS. A guide to updating Faculty websites Created by the Advancement & Marketing Unit

1. Tutorial - Developing websites with Kentico Using the Kentico interface Managing content - The basics

Content Author's Reference and Cookbook

External Account Creation and Upload Instructions for the Local Government (LG) Audit Report Collection System

emarketing Manual- Creating a New

<?xml version= 1.0?> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Joomla Article Advanced Topics: Table Layouts

UHR Training Services Student Manual

NURSING 3225 NURSING INQUIRY WEB SITE DEVELOPMENT GUIDE BOOK

Website Builder Documentation

Microsoft Expression Web

List Service Customizing a List. Introduction. Adding an Owner or Moderator. Process Summary Introduction. Adding an Owner or Moderator

Google AdWords TM Conversion Tracking Guide

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

Navigation Tree Plug-Ins for management Preview Area. Your Website Appears HERE

HowTo. Planning table online

4H Online Re-Enrollment

Content Author's Reference and Cookbook

1. Go to Here! Note: the Forgot or to have. a password 3. Enter. Guide

UOFL SHAREPOINT ADMINISTRATORS GUIDE

USING THE STUDENT RECORD SYSTEM A GUIDE FOR PERSONAL TUTORS

LRB Portfolio User Guide

Making a Web Page with Microsoft Publisher 2003

MailChimp Instruction Manual

1&1 SEO Tool Expert Call

Introduction to Drupal

PASTPERFECT-ONLINE DESIGN GUIDE

Using your Drupal Website Book 1 - Drupal Basics

USER GUIDE. Unit 5: Tools & Modules. Chapter 3: Forms & Surveys

Managing your Joomla! 3 Content Management System (CMS) Website Websites For Small Business

CMS Workbook Rev. 2.7 October 2014

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

MAGENTO THEME SHOE STORE

How to Make a Working Contact Form for your Website in Dreamweaver CS3

RapidWeaver 4. User Manual

WP Popup Magic User Guide

UH CMS Basics. Cascade CMS Basics Class. UH CMS Basics Updated: June,2011! Page 1

University of Colorado at Boulder Alumni Association

Getting Started with KompoZer

!!!!!!!! Startup Guide. Version 2.7

Dreamweaver CS5. Module 2: Website Modification

HTML Templates Guide April 2014

NetSuite OpenAir Mobile for Android User Guide Version 1.3

Getting Started with Google Analytics 7 Easy but comprehensive steps

BT MEDIA JOOMLA COMPONENT

Create a Google Site in DonsApp

Pizza SEO: Effective Web. Effective Web Audit. Effective Web Audit. Copyright Pizza SEO Ltd.

Scoop Hosted Websites. USER MANUAL PART 4: Advanced Features. Phone: scoop@scoopdigital.com.au Website: scoopdigital.com.

So you want to create an a Friend action

Chapter 11 Web Development: Importing Gifs and Backgrounds

Developers Guide. Designs and Layouts HOW TO IMPLEMENT WEBSITE DESIGNS IN DYNAMICWEB. Version: English

Digital Marketing EasyEditor Guide Dynamic

Transcription:

Utilizing DOCStudio dynamic templates in non-plugin applications While DOCStudio was designed to accommodate perl applications using its plug-in architecture, other applications, including those hosted by other sites, may incorporate dynamically generated DOCStudio templates via javascript. The benefit of using DOCStudio templates over hard-coded templates include: 1. No need to recode applications when templates change 2. User experience remains consistent 3. Navigation remains constant 4. Breadcrumbs generated for user 5. Pageviews logged in DOCStudio stats 6. No need to code CSS 7. Faster development time I. Create a page in DOCStudio to host the application template 1. Create a new page in the appropriate section. 2. In the Sort Order menu, select Do not show links to this page (this page will be sending javascript, not html, so you do not want users to access it as a normal page). 3. Title the page something that will be appropriate for the entire application (the title of the page will appear in the breadcrumbs throughout the application). 4. Abstract and Keywords may be left blank, though it may be helpful to include a note in the abstract that this page serves up a template for an application and should not be altered just in case an admin decides to clean up the site. 5. Uncheck the box to include in searches and sitemap (remember, you do not want anyone to access this page). 6. Filename may be anything, but it may be helpful to include the word template. Remember what you type you will need the filename later. 7. Ignore other fields and scroll to Page Body 8. The Page Body field will not be used, so just enter a space or dummy text. (The application will be the page body.) 9. In the Template menu, select nondocsjs_template.htm 10. Select a CSS if necessary. 11. Save the page. If the application is being hosted by another company, an internal DOCStudio administrator will have to create the host pages. After you click Save and DOCStudio displays the page for you, you will see why you don t want the page to be accessed as a normal site page! DOCStudio sends this page as javascript.

Should you need to edit this page later, you won t be able to access it via the Admin buttons that normally appear at the bottom of every page. Instead, go to the main Admin page, click Manage Content, then Edit a Page. Find the page in the sitemap and click to edit. In the DOCStudio stats Page Requests report, all pageviews for the application will be counted under this page. If you want to track multiple pages in the application, create a DOCStudio host page for each one you want to track. II. Create/Edit the application html Each page in the application will need to incorporate some javascript code to call the template. Note that the DOCStudio template takes care of the following elements and they should not be duplicated by the application: 1. CSS 2. <meta> tags 3. <body> tag 4. Sitewide navigation 5. Breadcrumbs 6. Targeted elements 7. Copyright 8. Page update date The application should adhere to the CSS selected for the DOCStudio host page. Programmers should be provided with the CSS for their reference; if they need additional styles, a new CSS should be created and selected for the host page. III. Insert javascript into top of all application pages The javascript at the top of the page will write the template up to where the main content of the application starts. The top of every application page must start with <html> <head> <title> Page Title Here </title> <script language="javascript" src="http://www.yourdomain.com/host-filename.js"></script> <h1>start Application Content</h1> <p>etc... NOTES: - Replace host-filename with the filename of the page you created in DOCStudio to host the template.

- No <meta> tags - No </head> tag - No <body> tag - Any additional javascripts needed by the application may be inserted after the <head> tag. - The application s content is everything it would include between (but not including) <body> and </body>. IV. Insert javascript into bottom of all application pages The javascript at the bottom of the page finishes the template. The bottom of every page must end with <script language="javascript"> document.write(template_bottom); </script> </body> </html> NOTE: - </body> and </html> tags after javascript.

V. Sample application page DOCStudio javascript code noted in blue. Some of the ASP code has been omitted for space. <% Set conn = Server.CreateObject("ADODB.Connection") conn.open "survey","","" ' Build Query String sqlselct = "SELECT id, institution, department, country, MailCity, MailState FROM [DeptReport] " sqlorder = "ORDER BY country, institution, MailState, MailCity" If Request.Form("sqlwhere") = "" Then sqlwhere = createwhereclause() Else sqlwhere = Replace(Request.Form("sqlwhere"), "~", "'") strsql = sqlselct & sqlwhere & sqlorder ' Create Recordset Set ors = Server.CreateObject("ADODB.Recordset") ors.cursortype = 3 ors.cursorlocation = 3 ors.activeconnection = conn ors.open strsql %> <html> <head> <title>survey of Staffing</title> <script language="javascript" src="http://www.yourdomain.com/hostfilename.js"></script> <!-- start application content --> <h1>search Results</h1> <p> Your search returned <b><%=intrecordcount%></b> records. <%If intrecordcount > 0 Then%> You are now viewing records <b><%=intstart%> through <%=intfinish%></b>. <br> </p> <TABLE BORDER=0 CELLSPACING=0 cellpadding="2" WIDTH=100%> <THEAD> <TR bgcolor="#003300">

<TD WIDTH="30%" class=s2><b><font color="#ffffff">institution</font></b></td> <TD WIDTH="20%" class=s2><b><font color="#ffffff">department</font></b></td> <TD WIDTH="10%" class=s2><b><font color="#ffffff">country</font></b></td> <TD WIDTH="20%" class=s2><b><font color="#ffffff">city</font></b></td> <TD WIDTH="20%" class=s2><b><font color="#ffffff">state</font></b></td> </TR> </THEAD> <TBODY> <% For intrecord = 1 to ors.pagesize If intrecord Mod 2 = 0 Then rowtype = "#eeeeee" Else rowtype = "#ffffff" Response.Write "<TR VALIGN=TOP bgcolor=" & rowtype & ">" & CHR(10) Response.Write "<TD class=s2><a HREF='profile.asp?id=" & ors.fields("id").value & "'>" & ors.fields("institution").value & "</A><BR></TD>" & CHR(10) Response.Write "<TD class=s2>" & ors.fields("department").value & Response.Write "<TD class=s2>" & ors.fields("country").value & Response.Write "<TD class=s2>" & ors.fields("mailcity").value & Response.Write "<TD class=s2>" & ors.fields("mailstate").value & Response.Write "</TR>" & CHR(10) ors.movenext If ors.eof Then Exit For Next Response.Write "</TBODY><TFOOT></TFOOT></TABLE> <br>" & CHR(10) Response.Write "<FORM METHOD=post ACTION=searchresults.asp>" & CHR(10) Response.Write "<INPUT TYPE=hidden NAME=prevPage VALUE='" & intpage - 1 & "'>" & CHR(10) Response.Write "<INPUT TYPE=hidden NAME=nextPage VALUE='" & intpage + 1 & "'>" & CHR(10) Response.Write "<INPUT TYPE=hidden NAME=sqlwhere VALUE='" & Replace(sqlwhere, "'", "~") & "'>" & CHR(10) ' Check to see if the current page is greater than the first page ' in the recordset. If it is, then add a "Previous" link. If cint(intpage) > 1 Then Response.Write "<INPUT TYPE=submit NAME=prev VALUE='<< Prev'> " & CHR(10) ' Check to see if the current page is less than the last page

' in the recordset. If it is, then add a "Next" link. If cint(intpage) < cint(intpagecount) Then Response.Write "<INPUT TYPE=submit NAME=next VALUE='Next >>'>" & CHR(10) Response.Write "</FORM>" ors.close() conn.close() %> <!-- end application content --> <script language="javascript"> </script> document.write(template_bottom); </body> </html>