Top Banner
Website Content Management Michael Tucker DBA / Webmaster Forsyth County Public Library
32

Michael Tucker DBA / Webmaster Forsyth County Public Library.

Dec 24, 2015

Download

Documents

Bethany Evans
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Website Content Management

Michael Tucker DBA / WebmasterForsyth County Public Library

Page 2: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Many Open Source Options such as Joomla Retail Options Are Also Available Build Your Own!

Where to Begin

Page 3: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Website Print Release Event Advertisement

Public Computers

Catalog Facebook

DATABASE-DRIVENStaff members type information ONCE.

Information displays MULTIPLE places.

Page 4: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Programs Publications (Bookmarks and Brochures) Jobs General News Construction News Service Outages Menu / Links Pages Online Resources Featured Items Teen Events Fun Stuff (children’s crosswords, etc.)

What We Use Content Management Tools (CMT’s) For

Page 5: Michael Tucker DBA / Webmaster Forsyth County Public Library.

IIS on Windows Server Access Databases ASP Microsoft Expression Web Vbscript

The Tools FCPL Used To Get There

Page 6: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Anyone with Access can edit the databases without SQL knowledge.

Cheap (check SRS, formerly MSD)! No new licenses or servers required.

Pros of Using Access Databases

Page 7: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Plays nice with Windows Servers / IIS. Code can be generated from web design

software.

ASP

Page 8: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Standards based. Allows for asp master pages to control look

of website throughout. Excellent ASP tools for database

connections and displaying data.

Microsoft Expression Web

Page 9: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Edit the database directly. Use Microsoft Expression Web to create an

asp page that edits your database. Create your own system.

Different Ideas For Content Management

Page 10: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Editing Access Database DirectlyTip: Make a copy of the database and edit the copy. Otherwise the lock will stop your WebPages from displaying correctly.

Page 11: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Create a new aspx page on your site. Create a new datasource pointing to the

database you want to control.

Asp Page Option

Page 12: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Configure the Datasource to select the primary key for the table and if needed a column that you could select from a drop down menu that would be unique to each entry.

Asp Page Option

Page 13: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Add a drop down list to your page and configure it to point to your datasource. Select a display and data field. The datafield should be assigned to the tables primary key.

Asp Page Option

Page 14: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Add an ASP button to the page.

Asp Page Option

Page 15: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Add a second datasource to the page making sure to select all of the columns or *

ASP Page Option

Page 16: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Click on the “Where” button and make your query use the value of the drop down list.

ASP Page Option

Page 17: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Click on the “Advanced” button and have it create insert, update, and delete statements.

Asp Page Option

Page 18: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Insert a Form View to your page and assign the second datasource to it.

ASP Page Option

Page 19: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Adjust permissions on your webserver to allow modify access in the directory where your access database file resides.

Highly recommend then putting some form of authentication on the new webpage you have created. In IIS you can use Windows Authentication, or I have also done this through ASP by hiding visibility of the dropdown and button until a username and password is entered.

ASP Page Option

Page 20: Michael Tucker DBA / Webmaster Forsyth County Public Library.

ASP Page Option

Page 21: Michael Tucker DBA / Webmaster Forsyth County Public Library.

At FCPL, we designed our system so that everyone who is approved to contribute to our website is given Remote Desktop rights to a system we call our Portal machine. This is the only system that has access into the DMZ in which our webserver lives. Once on this machine, the login used determines which Content Management Tools (CMTs) can be accessed. The CMTs are .hta files (written in vbscript) which allow staff to edit the approved databases.

Create Your Own Option

Page 22: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Warning the follow slides will contain some code. Also this is just one of many ways to go about the creation of such a tool. For those wanting to get this custom with your solution, I hope this will provide a great start and give you a few ideas.

Create Your Own Option

Page 23: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Create Your Own OptionMain Screen for our Programs CMT

Page 24: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Create Your Own OptionThe Edit and add new screen

Page 25: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Create Your Own OptionThe Category Link screen

Page 26: Michael Tucker DBA / Webmaster Forsyth County Public Library.

<head>

<title>Online programs</title>

<HTA:APPLICATION

APPLICATIONNAME="Admin online Programs"

SCROLL="yes"

SINGLEINSTANCE="yes"

WINDOWSTATE="maximize"

>

</head>

<body bgcolor="gray">

<center>

<H1>Programs Content Management Tool</h1><br><br>

<a href=“LINKTOSHAREONWEBSERVER">Put programs here!</a> <br><br>

</table>

<span id = "DataArea"></span>

<br><br>

Check your Work: <a target="_blank" href="http://www.forsythpl.org/aboutFCPL/programsAndServices.aspx">http://www.forsythpl.org/aboutFCPL/programsAndServices.aspx</a>

</center>

</body>

Create Your Own OptionThe HTML Section of the hta file

Page 27: Michael Tucker DBA / Webmaster Forsyth County Public Library.

DataArea.InnerHTML =Is used in the vbscript to update the div DataArea in the HTML

html = "<table><tr><td>" programDropDown html = html &programString &"</td></tr>" html = html &"<tr><td><input type=""button"" value=""Edit

program"" name=""editprogram"" onClick=""fillprogram""></td></tr>"

html = html &"<tr><td><input type=""button"" value=""Add New program"" name=""addNewprogram"" onClick=""emptyForm""></td></tr>" html = html &"<tr><td><input type=""button"" value=""Add/Remove Link to program"" name=""addLink"" onClick=""linkPage""></td></tr>"

html = html &"</table>"DataArea.InnerHTML = html

Create Your Own Option

Page 28: Michael Tucker DBA / Webmaster Forsyth County Public Library.

driver = "Microsoft.Jet.OLEDB.4.0“dataSource = "Data Source=programs.mdb“Query = "select branchNum, branch from branch

order by branch“set con = createobject("ADODB.connection")con.Provider = drivercon.ConnectionString = dataSourcecon.openset rs = CreateObject("ADODB.Recordset")rs.ActiveConnection = conrs.Open Query

Create Your Own OptionExample Database Connection and Query

Page 29: Michael Tucker DBA / Webmaster Forsyth County Public Library.

rs.movefirstUsed to access the first record

rs.movenextTo move to the next record returned

rs.fields(0).valueWill access the first column of the record

Create Your Own Option

Page 30: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Full source code for our Program CMT can be found at http://www.forsythpl.org/test/demo/programs.txt

Create Your Own Option

Page 31: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Website Print Release Event Advertisement

Public Computers

Catalog Facebook

Programs Database in Action

Page 32: Michael Tucker DBA / Webmaster Forsyth County Public Library.

Michael TuckerForsyth County Public [email protected]

Contact Information