Repository navigation
Description
Goal
Our vision with the Content Drive, is to be able to save queries in the future, so we should be able to load an Elastic Search base query on initialization, for this iteration, we are getting a base query with just the root of the content, which will be the current site.
Store Model
The store should be made using NgRx Signal Store. we don't expect this feature to be heavy on store.
// Find a common object between a contentlet and a folder
// Keep in mind that this type can be use across all DotCMS, use the Models library to make this centralized
type ContentDriveItem = {};
// We just need this for now, we will add more fields later.
type ContentDriveState = {
path: string;
currentSite: Site;
query: string;
items: ContentDriveItem[];
};Methods
initContentDrive
This method should be called when the shell is initialized. And it should get the path based on the current site for now.
This method should update the path and currentSite and a side effect, fetch items and set the items property on the store
initContentDrive({
currentSite: Site // We have a type for sites
path: string. // Representing the current path, in this case it will be "the-current-site.com/" because we cannot navigate on folders
// This is a vision of how it can be, we just need `path` and `currentSite` for this iteration. Filters can and will definitely not be like this
filters: {
baseType: string,
subType: string,
status: string,
language: string,
folder: string,
search: string,
sort: string,
page: number;
}
})To fetch items, we can use Elastic Search queries, check this document for the current properties we can use.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
#32485 adding the dependencies for refresh the saml (#32369)
#32485 adding the dependencies for refresh the saml (#32369)
github-actions commentedon Jul 1, 2025
PRs: