change footer

Jul 21, 2008 at 1:44 PM
Hi,
Is possible to change the footer using command line parameters to Assembly Name, Module and Version (ex: Assembly: AsName (Module: AsModule) Version: 123 (1.0.0.0) ) instead of  "2008 Microsoft Corporation. All rights reserved."?
Also,  i want to remove the "This is experimental documentation." that is placed after the topic name and i don't know what arguments to use.

Thanks
Jul 21, 2008 at 2:33 PM
Hi,

You can change these content items, among others, by modifying the XML files in your chosen presentation style's Content folder.  For the header and footer in particular, check out the shared_content.xml file.

However, I'm not sure if there are any content items that you can use to include assembly information dynamically.  In that case you must either hard-code the values (which would cause all builds to use the same values even when building help for other projects) or create a custom shared content file that overrides various items and supply it to your help builds on a per-project basis.  To add a custom shared content file you must open the Build Assembler configuration file (e.g., Configuration\sandcastle.config), locate the SharedContentComponent component element that includes the other content files and append a new include for your own file to the end of the list.  The items in your own file will then override any existing items.

- Dave
Editor
Jul 21, 2008 at 4:12 PM
For version information, you can use the custom build components found in the Sandcastle Help File Builder.  The components can be used in your own build scripts and configuration files (the standalone download).  Note that assembly information appears in the topic based on the presentation style.  In the VS2005 and Hana styles, it appears towards the top of the topic and the Prototype style places it towards the bottom.  The build component mentioned above just adds the version number, it won't change the location.  A post-transform component included with the custom build components will move the assembly information to the footer in the Prototype style.  The location in the Hana and VS2005 styles can't be changed without modifying the actual Sandcastle transformations.  Also, SHFB itself provides the ability to override the standard footer and header text items without modifying the Sandcastle content files.

Eric
Jul 22, 2008 at 5:30 AM
Thanks for your responses!

Flavia