/// <summary> /// Initializes a new <see cref="ManagedNavigationInfo"/> instance /// </summary> /// <param name="termSet">Metadata about the term set driving navigation</param> /// <param name="termGroup">Metadata about the parent group of the term set driving navigation</param> /// <param name="language">The current language being configured</param> /// <param name="addNewPagesToNavigation">Whether new pages should be added to navigation term set automatically</param> /// <param name="createFriendlyUrlsForNewsPages">Whether catalog-type pages (such as news items) should use friendly URLs</param> /// <param name="preserveTaggingOnTermSet">Whether tagging with the term set should still be allowed</param> public ManagedNavigationInfo( TermSetInfo termSet, TermGroupInfo termGroup, CultureInfo language, bool addNewPagesToNavigation, bool createFriendlyUrlsForNewsPages, bool preserveTaggingOnTermSet) { this.PreserveTaggingOnTermSet = preserveTaggingOnTermSet; this.TermGroup = termGroup; this.AssociatedLanguage = language; this.TermSet = termSet; this.CreateFriendlyUrlsForNewsPages = createFriendlyUrlsForNewsPages; this.AddNewPagesToNavigation = addNewPagesToNavigation; }
/// <summary> /// Initializes a new <see cref="ManagedNavigationInfo"/> instance /// </summary> /// <param name="termSet">Metadata about the term set driving navigation</param> /// <param name="termGroup">Metadata about the parent group of the term set driving navigation</param> /// <param name="language">The current language being configured</param> public ManagedNavigationInfo(TermSetInfo termSet, TermGroupInfo termGroup, CultureInfo language) : this(termSet, termGroup, language, false, false, true) { }