You may already be familiar with the concept of "skins" from other programs: You select a skin file and the appearance and layout of the entire program is transformed in seconds. Help & Manual enables you to do this with your HTML-based output. You can save your entire design in a .hmskin file and then select this file when you publish to apply the layout to the current project without changing any of the project's own settings.
Please note that you can only save projects as skins if you have the Professional version of Help & Manual. Standard version users can edit existing skins (for example skins from the Help & Manual Plus Packs) but they cannot create new skins from their own projects.
Skins can only be used for HTML-based output formats. You can style your PDF files and printed manuals with print manual templates, which work in the same way as skins. |
When you publish your output it will have the "look and feel" applied by the skin. You didn't have to do any design work at all! |
Skin files contain everything you need to style your HTML-based output: Text and table styles, user-defined variables, your Baggage files (template graphics and logos), HTML page templates and all the settings and templates for Webhelp. You can turn any project into a skin file just by saving it as a skin and you can edit skin files in Help & Manual, just like normal projects.
That's all there is to it. You can now compile other projects to HTML-based output formats with your new skin. |
Skin files are actually normal single-file projects with some special limitations. You can open them and edit them like normal projects but you can only edit those components that are included in the skin, everything else is unavailable.
Skins have no topics, you can only edit the relevant sections in the Configuration and Baggage Files sections in the Project Explorer and the text and table styles in Write > Styles. |
Your skin files can include text and table styles. However, for styles to work in skins the text in the project must use the same style names – otherwise Help & Manual cannot know where to apply the styles. Basic procedure: This is just one suggestion to illustrate how skins work, there are many different ways you could do this – you just have to ensure that the style names in all the project files are identical.
|
For advanced users: You can use include options to turn features in skins on and off. This makes it possible for the user to choose features in the skin when they publish their projects because include options stored in skins are loaded into the Include Options: box in the Publish dialog when the skin is selected.
For example, suppose you want to give the user the option of having a subtitle underneath the title in the table of contents in your Webhelp output. It would work like this:
<p class="navtitle">Help & Manual 5 - User Help</p> <IF_OPT_SUBTITLE><p class="nav-subtitle"><%SUBTITLE%></p></IF_OPT_SUBTITLE>
You can take this concept as far as you like: For example, you can use the same include option to change the CSS definitions in the same HTML template so that the formatting will be different depending on whether the subtitle is included or not. |
When the user selects a skin in the Publish dialog Help & Manual automatically looks for a PNG graphic file called $HMSKINPREVIEW.PNG in the skin's Baggage files. If this file is found a thumbnail version of the preview image is displayed in the Publish dialog. The user can then click on this image to display a full-size preview.
|
You don't have to save all your settings in your skin files. For example, it's possible to create a skin that only defines the user variables in your project – you just need to deselect everything except Variables when you save the skin file. Then you can redefine your variables in your entire project by selecting the skin file when you publish your project. You can do the same with your Baggage files, text and table styles, HTML Page Templates or any combination. |
When you publish manually you can only select one skin for the project you are publishing. However, when you use Help & Manual's command line options you can specify as many skins as you like one after another. When you do this the settings in the last skin you specify always have priority for duplicate settings – for example, if you redefine the same variables in two skins the settings in the second skin are those that will be applied. See Command Line Options and Skins & redefining variables for more information on this. |
See also:
Page url: http://www.helpandmanual.com/help/index.html?hm_advanced_templates_skins.htm