Multi-Lingual, Page Names, and Menus

Brendon McCarthy asked on March 18, 2015 15:33

We have a HierarchicalViewer configured for the main site navigation which is using Bootstrap HTML/CSS. All works just fine in a single language. Now we're adding a new language and want to use the "Menu Caption" property (Properties > Navigation) for the translated menu name. However, I'm not finding the correct macro reference for using the Menu Caption property. This isn't specific to multi-lingual sites, but I wanted to give the full context.

Current Implementation (using DocumentName): <a href="{% Transformation.GetDocumentUrl() #%}" {% NodeHasChildren ? "class='dropdown-toggle' data-toggle='dropdown'" : "" %} title="{% DocumentName %}">{% DocumentName %}</a>

Another Implementation (using MenuItemName): <a href="{% Transformation.GetDocumentUrl() #%}" {% NodeHasChildren ? "class='dropdown-toggle' data-toggle='dropdown'" : "" %} title="{% MenuItemName %}">{% MenuItemName %}</a>

Neither of these work to bring in the Menu Caption.

Recent Answers


Brenden Kehren answered on March 18, 2015 18:36

It should work as you show. If you are specifying the columns to bring in with the viewer, you'll want to make sure that column name is also included in the list otherwise it won't display the value.

0 votesVote for this answer Mark as a Correct answer

Brendon McCarthy answered on March 18, 2015 19:08

No columns are specified in the HierachicalViewer, therefore all would be returned.

The DocumentName and MenuItemNames do work as values, but neither reference the MenuCaption when it exists.

Page Properties: Form > Document name: Company Navigation > Menu caption: 会社概要

Note that in the generated Site Map, using the Site Map widget, the Menu Caption is used in place of the Document Name correctly.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.