in
Innovasys Logo

Table of Contents ordered by Namespace

Last post 08-18-2008 7:39 AM by Matt Bates. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-14-2008 4:07 PM

    Table of Contents ordered by Namespace

    Hi,

    We have multiple assemblies in our product and some namespaces are implemented across those assemblies.  

     

    The default TOC in DocX has each Assembly listed at the root level. Is it possible to have the TOC ordered by Namespace to make it easier to find classes rather than having to first drill down by assembly then namespace ?


  • 08-14-2008 7:28 PM In reply to

    Re: Table of Contents ordered by Namespace

    I have this exact same problem.  I can organize the TOC to remove the assembly node at the top and just list namespaces but then I get duplicates -- one namespace entry each time that namespace appears in a different assembly.

    Assemblies are not a big concept in our product and I need a way to either collapse the mutiple namespace entries in the TOC or modify the TOC names to include the assembly, eg

    Namespace_Name (Assembly_Name) 

    I can't figure out how to do either thing. 

     

  • 08-18-2008 7:39 AM In reply to

    Re: Table of Contents ordered by Namespace

    I apologize for any inconvenience this problem has caused you. Unfortunately at this time Document! X does not currently support merging namespaces.

     You can customise your TOC so that it displays the Assembly name after the Namespace, below are steps to implement this:

    1. Create a custom content type "TOCTITLE" associated with Namespaces. There is a tutorial available in the Document! X help detailing this: Tutorials > Creating a new Content Type
    2. From the Project Page in Document! X select the Table of Contents option, then select Use a custom Table of Content layout
    3. For each of your assemblies open the content file, for each namespace edit the TOCTITLE value to the assembly name. Save the content files.
    4. Select the Namespace title node (will most likely be the %%Local_Item_title%% node under the $$Namespaces$$ node). Add the following to the Node Caption field: %%TaggedComment:source=,id=##TOCTITLE%%
    When you build your project the assembly name will now be displayed on the namespace node.

     

    Matt Bates
    Innovasys
    http://www.innovasys.com
Page 1 of 1 (3 items)