Skip to main content
Participant
October 31, 2016
Question

Customize HTML5 output or project structure?

  • October 31, 2016
  • 2 replies
  • 551 views

I am trying to solve a problem where a header and footer need to be added to my published project outside of my Captivate project. They are being inserted w/ javascript once the project is published.  We don't want to put them directly into our captivate projects in case links are updated/changed. etc. Easier to manage from one place.

Since Captivate adds inline styles to so many elements when publishing as HTML5, the header and footers are overlapping my project when the viewport is re-scaled or changes from landscape to portrait.  We can override some styles but it is really inefficient to override every single one.  There are 2 ways I can think of to solve this but I can't figure them out:

1. Is there a way to get the TOC bar calculated as part of the project width/height?  When I publish my project at a height of say, 715px, the content is actually taller because of the TOC bar at the bottom, but the inline height applied matches the 715px, so the TOC bar gets cut off.

OR

2. Is there a way I can modify the folder/build structure when publishing a project as HTML5 so that the published project goes to project.html instead of index.html? I do not see a setting anywhere to do this.  This route would allow us to keep our URLs and pull project.html into index.html as an iFrame.

Thanks for any help.

This topic has been closed for replies.

2 replies

Participant
February 28, 2018

if we rename the index.html then the output doesnt work

TLCMediaDesign
Inspiring
February 28, 2018

Are you the same person that started this thread?

Perhaps if you explain what the header and footer are for, what's in them and any other info, I would be able to work out  solution for you.

TLCMediaDesign
Inspiring
October 31, 2016

Could you explain what you mean in option 2?

What is project.html? You should be able to put index.html (HTML5 file) into an iFrame.

Participant
October 31, 2016

So, what I'd like to do is update the HTML folder so that it publishes with 2 html files: one called index.html, and one called project.html.

index.html will have the project title, some script tags to pull in the header, footer and analytics that I need, and the iFrame element.  The iFrame element will then point to project.html, which contains everything generated by Captivate.

In other words, instead of having the projects build to index.html, I want to build to my own file name, AND add a custom index.html that will pull in the content.

TLCMediaDesign
Inspiring
October 31, 2016

You are not going to be able to publish like that. You will need to create your HTML page with an iFrame, publish Captivate and rename the index.html file.