Desktop User Guides > Author > Creating questions and responses > Using the Gallery > Adding custom Gallery items > Adding custom Gallery categories
 
Adding custom Gallery categories
These steps outline the process of creating new library item categories (functionality, questions, templates and so on). The categories display as items in main pages, and as section items at the top of the browser page.
1 Change the library.xml file.
<Library>
<Categories>
<Category>
<Name Lang = "en">Survey Fragments</Name>
<Thumbnail>GalleryInformation\Survey Fragments.png</Thumbnail >
<Path>Survey Fragments</Path>
</Category>
<Category>
<Name Lang = "en">Questions</Name>
<Thumbnail>GalleryInformation\Controls.png</Thumbnail >
<Path>Questions</Path>
</Category>
<Category>
<Name Lang = "en">Functionality</Name>
<Thumbnail>GalleryInformation\Functionality.png</Thumbnail >
<Path>Functionality</Path>
</Category>
<Category>
<Name Lang = "en">Layouts</Name>
<Thumbnail>GalleryInformation\Layouts.png</Thumbnail >
<Path>Templates</Path>
</Category>
</Categories>
<Category>
<Name Lang = "en">Customer</Name>----> The name of the new library
category.
<Thumbnail>GalleryInformation\Customer.png</Thumbnail > Default category thumbnail. If the item in this category
does not have a dcprop, this will be used in default dcprop
<Path>Customer</Path>---------------> Relative category path.
</Category>
</Categories>
</Library >
2 Define the <Section> section’s <Tags> values for the new category.
<Section>
<Tags>
<Name Language = "en">Question Types</Name>
<Tag>
<ID>SingleResponse</ID>----------------------->Tag ID.
<Name Language = "en">Single Response</Name>-->Tag Name. This also
supports multiple
languages.
<Tag>
</Tag>
</Section>
See also
Adding custom Gallery items