Post-build action to modify the Default.htm file

This forum is for all Flare issues not related to any of the other categories.
Post Reply
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Post-build action to modify the Default.htm file

Post by doc_guy »

Has anybody created a post-build action to modify the Default.htm file that gets generated by Flare?

I have a need to add a script to that file. (I have another post on using Pendo, which describes my need; basically, you have to use the Default.htm file to use context-sensitive help, and I need to add script to the Default.htm file so I can pass a user id from my application into my help site for user analytic tracking.)

I don't know how to write a post-build command that will edit the Default.htm file to add an extra line of code, and I'm wondering if somebody can help guide me through the process.

Thanks in advance.
Paul Pehrson
My Blog

Image
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: Post-build action to modify the Default.htm file

Post by NorthEast »

I'd suggest leaving Default.htm alone, and create your own landing page instead.

Pass the CSHID and whatever other parameters you need to your own landing page.
Your landing page can process your parameters, and then open Default.htm with your CSHID.

I do something similar where we pass an application ID (rather than user ID), and save that in local storage.
This means the help can read this from local storage so it knows which variant of the application the is being used.
Post Reply