IUrlMapAddOrUpdateCustomUrl Method
|
Add or update the url map entry with a new custom path.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIUrlMapPageHistoryEntry AddOrUpdateCustomUrl(
string action,
IPage page,
string newPath,
string originalPath = "",
EnumUrlMapPageHistoryType type = EnumUrlMapPageHistoryType.Custom,
bool canonical = false,
bool requireSSL = false
)
Function AddOrUpdateCustomUrl (
action As String,
page As IPage,
newPath As String,
Optional originalPath As String = "",
Optional type As EnumUrlMapPageHistoryType = EnumUrlMapPageHistoryType.Custom,
Optional canonical As Boolean = false,
Optional requireSSL As Boolean = false
) As IUrlMapPageHistoryEntry
IUrlMapPageHistoryEntry^ AddOrUpdateCustomUrl(
String^ action,
IPage^ page,
String^ newPath,
String^ originalPath = L"",
EnumUrlMapPageHistoryType type = EnumUrlMapPageHistoryType::Custom,
bool canonical = false,
bool requireSSL = false
)
abstract AddOrUpdateCustomUrl :
action : string *
page : IPage *
newPath : string *
?originalPath : string *
?type : EnumUrlMapPageHistoryType *
?canonical : bool *
?requireSSL : bool
(* Defaults:
let _originalPath = defaultArg originalPath ""
let _type = defaultArg type EnumUrlMapPageHistoryType.Custom
let _canonical = defaultArg canonical false
let _requireSSL = defaultArg requireSSL false
*)
-> IUrlMapPageHistoryEntry 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
IUrlMapPageHistoryEntryReturns the
urlmap entry for the new Custom URL
See Also