Click or drag to resize

IUrlMapRebuild Method (String, Boolean, IStructuredUrlSettings, IUser, Boolean)


Rebuilds the complete collection of URL maps and outputs the resulting XML file to a specific location.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
void Rebuild(
	string publishFolder,
	bool primeTarget,
	IStructuredUrlSettings surlSettings,
	IUser user,
	bool incremental = false
)

Parameters

publishFolder
Type: SystemString
The full path of the Folder in which to place the generated URL map XML file
primeTarget
Type: SystemBoolean
Determines the name of the URL map XML file. When true, the file name is just "urlmap.xml"; when false, the file name is this entity's unique ID plus ".xml".
surlSettings
Type: Ingeniux.CMSIStructuredUrlSettings
The structured URL settings. These typically comes from the Publishing Target that this collection belongs to. Exposed as parameter so it can be customized.
user
Type: Ingeniux.CMSIUser
The User that will perform the rebuild
incremental (Optional)
Type: SystemBoolean

[Missing <param name="incremental"/> documentation for "M:Ingeniux.CMS.IUrlMap.Rebuild(System.String,System.Boolean,Ingeniux.CMS.IStructuredUrlSettings,Ingeniux.CMS.IUser,System.Boolean)"]

Remarks

The generated URL maps file will be placed in the App_Data/pub/[pub target folder]/settings folder.

Examples
Generated urlmap.xml example:
XML
<?xml version="1.0" encoding="utf-8"?>
<Site HomePageID="x2" ForceLowerCaseURL="false" AutoRedirectCanonicalURL="true" EnabledExtensions="" URLExtension="" UseStructuredURL="true">
  <Page ID="x11" Path="/Champlain" Schema="CaseStudy" />
  <Page ID="x12" Path="/Mica" Schema="CaseStudy" />
  <Page ID="x13" Path="/Midwestern" Schema="CaseStudy" />
  <Page ID="x14" Path="/Company/News" Schema="NewsandEventsFront" />
  <Page ID="x15" Path="/Company/News/News-Archive" Schema="NewsArchive" />
  <Page ID="x17" Path="/Company/News/News-Archive/Ingeniux-Announces-Dates-for-2014-User-Conference" Schema="NewsDetail" />
  <Page ID="x2" Path="/" Schema="Home" />
  <Page ID="x28" Path="/Company" Schema="SectionDetail" />
  <Page ID="x34" Path="/Products" Schema="ProductFront" />
  <Page ID="x35" Path="/Products/Cartella-x35" Schema="ProductDetail">
  <Renamed Path="/Products/Cartella" Canonical="true" />
  </Page>
  <Page ID="x41" Path="/Solutions" Schema="SolutionsFront" />
  <Page ID="x43" Path="/Products/Cartella-x43" Schema="ProductDetail" />
  <Page ID="x44" Path="/Products/CMS" Schema="ProductDetail" />
  <Page ID="x47" Path="/Solutions/Mainstream" Schema="SolutionsDetail" />
</Site>
See Also