ASP.NET Extensibility
In this article we provide information that will help you to develop overrides, extend import, and update functionality.
You can develop overrides, similar to custom hooks, to extend import and update functionality.
Important
Only modify the controllers ImportATFController and ImportController.
From ImportController.cs:
...
private void _AttachListeners(Importer importer)
{
PageImporter pageImporter = importer as PageImporter;
if (pageImporter != null)
{
//pageImporter.PageLookup = (IEnumerable<PageWrapper> pageWrappers, PageImporter _importer) =>
//{
//};
pageImporter.PreImport = (PageImporter _pageImporter, ref object data) =>
{
};
pageImporter.PreCreation = (PageWrapper wrapper, ref IPage parentPage, ref ISchema schema, PageImporter _pageImporter) =>
{
};
pageImporter.PostCreation = (PageWrapper wrapper, IPage page, PageImporter _pageImporter) =>
{
};
pageImporter.PreUpdate = (PageWrapper wrapper, ref IPage updatePage, PageImporter _pageImporter) =>
{
};
pageImporter.PostUpdate = (PageWrapper wrapper, IPage page, PageImporter _pageImporter) =>
{
};
}
importer.ImportFinishedDelegate = (Importer _importer) =>
{
};
importer.ImportSessionClosedDelegate = (Importer _importer) =>
{
};
}
...
Property | Description |
---|---|
PageLookup | For more complex functions, you can look up page content instead of by element name. |
PreCreation | Called before the page is created (i.e., gets PageWrapper object). Returns the wrapper element. |
PostCreation | Called after the page is created (i.e., gets PageWrapper object). Returns the wrapper element. |
PreUpdate | Called before the page is updated. |
PostUpdate | Called after the page is updated. |
There are no comments yet.