Click or drag to resize

IUrlMapAddOrUpdateCustomUrl Method


Add or update the url map entry with a new custom path.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
IUrlMapPageHistoryEntry AddOrUpdateCustomUrl(
	string action,
	IPage page,
	string newPath,
	string originalPath = "",
	EnumUrlMapPageHistoryType type = EnumUrlMapPageHistoryType.Custom,
	bool canonical = false,
	bool requireSSL = false
)

Parameters

action  String
add, move, edit, or delete
page  IPage
CMS IPage object to operate on
newPath  String
New SURL path for the page
originalPath  String  (Optional)
Original path (if moving)
type  EnumUrlMapPageHistoryType  (Optional)
Type of url entry, usually Custom
canonical  Boolean  (Optional)
If this new custom url is to be treated as the current primary SURL
requireSSL  Boolean  (Optional)
Require custom URL to be HTTPS

Return Value

IUrlMapPageHistoryEntry
Returns the urlmap entry for the new Custom URL
See Also