Search found 50 matches

by Thomas Tregner
Tue Jun 17, 2014 6:01 am
Forum: Styles, Stylesheets and XML
Topic: PrettyPrint-ed Code bleeding outside of box
Replies: 2
Views: 2079

Re: PrettyPrint-ed Code bleeding outside of box

Can you give some more details about rdoverflow? Is it just defined in the CSS? I see div elements with that class value wrapping the code samples and I see that the stylesheet defines the overflow behavior for that case. div.rdoverflow { overflow: auto; } The behavior is dependent on the browser wi...
by Thomas Tregner
Mon Jun 16, 2014 9:56 am
Forum: Styles, Stylesheets and XML
Topic: How to make page numbers blue in TOC and index
Replies: 1
Views: 1902

Re: How to make page numbers blue in TOC and index

MadCap|xref.TOCPageNumber
MadCap|xref.IndexPageNumber
by Thomas Tregner
Fri Mar 07, 2014 11:19 am
Forum: Flare's General Discussion
Topic: Using Flare API to modify document structure
Replies: 4
Views: 2333

Re: Using Flare API to modify document structure

Check out the documentation for the update to the plug-in API for version 10. It probably has what you need now.

http://downloads.madcapsoftware.com/fla ... oc0100.zip
by Thomas Tregner
Mon Feb 10, 2014 6:55 am
Forum: Flare's General Discussion
Topic: Using Flare API to modify document structure
Replies: 4
Views: 2333

Re: Using Flare API to modify document structure

Hello Paul, There are a couple of posts on my blog about Flare plug-ins. A First Flare Plug-in Create Topics in Bulk with a Plug-in There aren't methods to manipulate topic DOMs in the current API. But what you can do is recreate the topic in your plug-in and overwrite it. For example you can load t...
by Thomas Tregner
Fri Sep 20, 2013 5:52 am
Forum: Web-based Outputs
Topic: Hide/Show Navigation Pane
Replies: 12
Views: 9446

Re: Hide/Show Navigation Pane

Shows 123 and then 456 but action inbetween is not happening. Where are you placing your script? I should probably go somewhere in the skin. If you place it in the topic iframe (Topic, Master Page, or Snippet), the script will not be able to act on the navigation pane. One approach is to place just...
by Thomas Tregner
Fri Sep 13, 2013 6:07 am
Forum: Web-based Outputs
Topic: Need to have print /save to pdf feature on each page in Help
Replies: 5
Views: 2845

Re: Need to have print /save to pdf feature on each page in Help

RamonS wrote:...otherwise you need to drag twice the amount of files around after a build.
I hear you there. I think there are pros and cons to approaches. I've seen this requirement more than once. But I'm personally satisfied with the print button.
by Thomas Tregner
Fri Sep 13, 2013 5:42 am
Forum: Styles, Stylesheets and XML
Topic: Can I change a p with a class to a h?
Replies: 10
Views: 3734

Re: Can I change a p with a class to a h?

Would a plug-in to change element tags be useful?
by Thomas Tregner
Fri Sep 13, 2013 5:41 am
Forum: Web-based Outputs
Topic: Need to have print /save to pdf feature on each page in Help
Replies: 5
Views: 2845

Re: Need to have print /save to pdf feature on each page in Help

One option would be to generate PDFs for each topic and make that button a link to the applicable file. Aside from that, you'd either need some server side processing or do it client side using JavaScript. See here: https://github.com/MrRio/jsPDF Interesting idea. If there are many topics, I think ...
by Thomas Tregner
Tue Sep 03, 2013 1:27 pm
Forum: Web-based Outputs
Topic: Hide/Show Navigation Pane
Replies: 12
Views: 9446

Re: Hide/Show Navigation Pane

Check to see if your browser is throwing an error about the origin of the call. The toggle is on the main help and not in the topic iframe. You will run into problems if you try to do something to the parent window from the child topic iframe. Calling the click event for that toggle will work from t...
by Thomas Tregner
Wed Aug 28, 2013 1:31 pm
Forum: Web-based Outputs
Topic: Hide/Show Navigation Pane
Replies: 12
Views: 9446

Re: Hide/Show Navigation Pane

Simulating a click isn't my favorite approach. But with jQuery:

Code: Select all

$("#show-hide-navigation").click();
by Thomas Tregner
Thu Aug 22, 2013 10:03 am
Forum: Flare's General Discussion
Topic: When will Flare support PHP?
Replies: 14
Views: 5791

Re: When will Flare support PHP?

That wasn't always the case. Flare used to strip parts and destroy the rest causing the code to be totally unusable. I wonder in which version that changed. Back then I reported as a bug and so far did not get word that it was fixed, but apparently it was. I haven't encountered that. But that doesn...
by Thomas Tregner
Thu Aug 22, 2013 9:01 am
Forum: Flare's General Discussion
Topic: When will Flare support PHP?
Replies: 14
Views: 5791

Re: When will Flare support PHP?

Were you able to change the topic extension and insert the PHP script from within the Flare UI, or did you do that in the output files? Thanks, Mark Both can be done from the Flare UI. With an HTML5 target open in the Target Editor, on the Advanced tab under Output Options , there is a Use custom f...
by Thomas Tregner
Tue Aug 13, 2013 10:33 am
Forum: Flare's General Discussion
Topic: When will Flare support PHP?
Replies: 14
Views: 5791

Re: When will Flare support PHP?

What kind of support for PHP are you requesting? I don't see how WebHelp or HTML5 outputs conflict with a web server running PHP or that those outputs cannot use PHP. I've tried it. WebHelp or HTML5 worked fine on a web server running PHP and the scripts I inserted were run by the server as expected...
by Thomas Tregner
Thu Jul 04, 2013 4:44 am
Forum: Web-based Outputs
Topic: Possible to modify Navigation Panel border width?
Replies: 9
Views: 8293

Re: Possible to modify Navigation Panel border width?

Dave Lee wrote:No, you don't need to do this
I tried it again and it worked as Dave described. I had checked the wrong output when I tested it. Thanks Dave!
by Thomas Tregner
Wed Jul 03, 2013 11:35 am
Forum: Tips and Tricks
Topic: Removing "value" attribute from "li" elements in web output
Replies: 2
Views: 2972

Re: Removing "value" attribute from "li" elements in web output

Good tip! I had to do the same thing in a similar scenario. We were using a show/hide technique I had blogged about. But we ended up adding something to strip those values out so the script would work for list items. Unfortunately number restarts are harder to do without the value attribute. But tho...
by Thomas Tregner
Wed Jul 03, 2013 11:11 am
Forum: Web-based Outputs
Topic: Append HTML5 Skin Caption to Topic Title in Web Browser Tab?
Replies: 2
Views: 1897

Re: Append HTML5 Skin Caption to Topic Title in Web Browser Tab?

As a note to anyone who is willing to add an extra step, this is another one which can be accomplished by tweaking the out-of-the-box script either in the source files for the skin or in the generated output. Although it is harder to do in the generated files if you select Performance > General > Co...
by Thomas Tregner
Wed Jul 03, 2013 9:44 am
Forum: Web-based Outputs
Topic: Possible to modify Navigation Panel border width?
Replies: 9
Views: 8293

Re: Possible to modify Navigation Panel border width?

Dave's approach to adding styles to a skin is probably better than modifying the source. Here are a few additional notes:window.onload is incorrect. My test was Edit: This first highlighted note is wrong. See Dave's reply. Something has to run the jQuery script. One way to do that is: window.onload ...
by Thomas Tregner
Wed Jun 26, 2013 9:08 am
Forum: Web-based Outputs
Topic: Possible to modify Navigation Panel border width?
Replies: 9
Views: 8293

Re: Possible to modify Navigation Panel border width?

Yes you can. But you have to go outside of Flare and the change will affect any HTML5 output from that installation of Flare. You can modify the CSS used by the skin. It is located in the installation folder for Flare. I'm offering no guarantees on side effects or behavior in all browsers with the e...
by Thomas Tregner
Tue Jun 18, 2013 10:03 am
Forum: Styles, Stylesheets and XML
Topic: Using Page Layouts
Replies: 1
Views: 1198

Re: Using Page Layouts

I can't remember in which version Page Layout Breaks were added. But you can apply those to nodes on a TOC.
Specifying Chapter and Page Layout Breaks
When the break is enabled, you can specify the Page Type.
by Thomas Tregner
Wed Jun 12, 2013 11:40 am
Forum: Importing
Topic: Google docs
Replies: 3
Views: 3676

Re: Google docs

You can download a Google document as several formats. If you wan to create a tool to do it for you, there is an API. Google Drive SDK API Reference For example you can get a list of files including download URLs. Files: list And then download the files. Download Files You can use Google Takeout to ...
by Thomas Tregner
Thu May 16, 2013 1:10 pm
Forum: Source Control
Topic: Binding to TFS: Do I create the TFS folder first?
Replies: 1
Views: 2372

Re: Binding to TFS: Do I create the TFS folder first?

If you copy the project to the desired place in your working folder, Flare will pick that up when you select to bind the project. For example if your workspace is configured as $/ for the source control folder and C:\Example for the local folder, then in the C:\Example folder there should be a folde...
by Thomas Tregner
Thu May 16, 2013 12:50 pm
Forum: Single-Sourcing
Topic: Is there a way to edit source file in child project?
Replies: 2
Views: 2484

Re: Is there a way to edit source file in child project?

You can open a file outside of the project with File > Open. The Open screen is initially filtered to only show Flare Project files (*.flprj). You can switch that to All Files (*.*) and open the file. If you open a topic in another project, there will be a warning at the top of the editor: "The...
by Thomas Tregner
Wed Apr 17, 2013 7:05 am
Forum: Importing
Topic: Import a Folder and Its Contents
Replies: 3
Views: 2395

Import a Folder and Its Contents

Is there an easy way to specify to import a folder and its contents through the UI? The best I can think of is:
  • Create a condition for import use only.
  • Apply the condition to the folder.
  • Specify the condition in Import Conditions in the Project Import Editor.
Maybe someone has a better way...
by Thomas Tregner
Mon Mar 04, 2013 12:26 pm
Forum: Web-based Outputs
Topic: Web Help Multiple Versions
Replies: 3
Views: 1896

Re: Web Help Multiple Versions

You may be able to accomplish what you want with a little scripting and rigorous application of conditions to meet the needs of the script. These blog posts are a starting point for HTML5 output: http://tregner.com/flare-blog/version-filters-in-html5-output/ http://tregner.com/flare-blog/version-fil...