Web scripting in MadCap Flare

Post on 21-Jan-2017

196 views 0 download

transcript

PRESENTED BY

Extending MadCap Flare with Web Programming and Scripting

Paul Pehrson@docguy | www.docguy.training

Track 3: Guru

About Me• (Ab)using Flare for 10

years• Full time technical writer

at Venafi• Part time Flare consultant

and trainer at DocGuy Training

Overview• Javascript• jQuery• PHP

JavaScript• Internal vs. Reference• Where to place the script

– Master page– Topic Page– What about a snippet?

• Example– Contact Form Validation

jQuery• What is jQuery• How do I add jQuery libraries• Where to place the script• Example

– Table Sorting jQuery

PHP• What is PHP

– Object-oriented programming language– Server-side scripting protects your scripts and private

information• Flare PHP requires

– Target Settings– Include statements

PHP (cont.)• Target settings

– Custom file extensions– Include unreferenced files

• Include statements– Keep most of the php off the Flare topic

• Must have PHP installed to test, or upload to a web server

PHP (cont.)• Condition out of Print targets

– DIV class condition (Flare 12)– DIV with condition (Flare 11, 12)

• Example– Contact Form

• Database• Email form

Q&A

Download Project FilesYou can download the project I used for this presentation to see all the source code and how it was implemented by visiting: http://docguy.training/mw16/scripting

Thank You!

Visit my website for more information on consulting and training opportunities

www.docguy.training