|
| Pages (IProject project) |
|
IPage | Create (IContentClass cc, string headline=null) |
| Create a new page.
|
|
IPage | CreateAndConnect (IContentClass cc, Guid linkGuid, string headline=null) |
| Create a new page in the current language variant and link it.
|
|
IExtendedPageSearch | CreateExtendedSearch () |
| Create an extended page search on this project.
|
|
IPageSearch | CreateSearch () |
| Create a simple page search on this project.
|
|
IPage | GetByGuid (Guid pageGuid, ILanguageVariant languageVariant) |
|
IEnumerable< IPage > | Search (Action< IPageSearch > configurator=null) |
| Convenience function for simple page searches. Creates a PageSearch object, configures it through the configurator parameter and returns the search result.
|
|
List< ResultGroup > | SearchExtended (Action< IExtendedPageSearch > configurator=null) |
| Convenience funtion for extended page searches. Creates a new PageSearchExtended object which gets configured through the configurator parameter and returns the result of the search.
|
|
bool | TryGetByGuid (Guid pageGuid, ILanguageVariant languageVariant, out IPage page) |
|
IPage | Create (IContentClass cc, string headline=null) |
| Create a new page.
|
|
IPage | CreateAndConnect (IContentClass cc, Guid linkGuid, string headline=null) |
| Create a new page in the current language variant and link it.
|
|
IExtendedPageSearch | CreateExtendedSearch () |
| Create an extended page search on this project.
|
|
IPageSearch | CreateSearch () |
| Create a simple page search on this project.
|
|
IPage | GetByGuid (Guid pageGuid, ILanguageVariant languageVariant) |
| Get a page by its guid and its language variant. Does not load all Pages.
|
|
IEnumerable< IPage > | Search (Action< IPageSearch > configurator=null) |
| Convenience function for simple page searches. Creates a PageSearch object, configures it through the configurator parameter and returns the search result.
|
|
List< ResultGroup > | SearchExtended (Action< IExtendedPageSearch > configurator=null) |
| Convenience funtion for extended page searches. Creates a new PageSearchExtended object which gets configured through the configurator parameter and returns the result of the search.
|
|
bool | TryGetByGuid (Guid pageGuid, ILanguageVariant languageVariant, out IPage page) |
| Try to get a page by its guid and its language variant.
|
|
Definition at line 127 of file IPages.cs.
Convenience funtion for extended page searches. Creates a new PageSearchExtended object which gets configured through the configurator parameter and returns the result of the search.
- Parameters
-
configurator | An action to configure the search |
- Returns
- The search results
The following code searches for all pages saved as draft by the current user:
var results = project.SearchForPagesExtended(
search => search.AddPredicate(
new PageStatusPredicate(PageStatusPredicate.PageStatusType.SavedAsDraft,
PageStatusPredicate.UserType.CurrentUser)
)
);
Definition at line 266 of file IPages.cs.