Folders in Drupal Canvas enable organization of components, patterns, and code-based components across different sections of the system. They allow controlled creation, modification, reordering, and deletion of folders while maintaining safeguards to prevent accidental data loss. Folders are strictly organizational and do not affect the display, execution, or backend logic of components or patterns.
Folders can be created and managed in the Components and Patterns tabs in the Library, with each tab maintaining its own independent structure. In addition, folders can be created and managed in the Code section to organize code-based components. This folder structure in this section is separate from the folder structure in the tabs in the Library.
Each folder includes the following elements:
Folder name: The folder name that provides a unique title to identify and organize components and patterns.
Ellipses button: A dropdown menu with the Rename and Delete Folder options.
Item count: A number next to the folder name that indicates the total components and patterns in the folder. The system updates this number when users add or move items.
Expand and collapse control: Expand or collapse folders to display or hide the components and patterns in them.
To create a folder for components:
Select Add folder.
The system displays a new folder row in the list.
Enter the folder name in the New folder field.
Press Enter to create the folder.
To create a folder for patterns:
Select Add folder.
The system displays a new folder row in the list.
Enter the folder name in the New folder field.
Press Enter to create the folder.
To create a folder for code-based components:
</>) icon.Select Add folder.
The system displays a new folder row in the list.
Enter the folder name in the New folder field.
Press Enter to create the folder.
To rename a folder:
Select Rename.
Enter the new folder name.
Press Enter to save the changes.
To delete a folder:
Select Delete folder.
To reorder the folder sequence:
Click and hold the folder.
Drag the folder to the new location in the list.
Drop the folder to change the sequence.
Users move components and patterns across the following levels:
From the menu list into a folder.
From a folder to the menu list.
From one folder to another folder.
To move components and patterns between folders:
Click and hold the component or pattern.
Drag the component or pattern to the new folder.
Drop the component or pattern to complete the move.
Item count: A number next to the folder name that indicates the total components and patterns in the folder. The system updates this number when users add or move items.
Expand and collapse control: Expand or collapse folders to display or hide the components and patterns in them.
To create a folder for components:
Select Add folder.
The system displays a new folder row in the list.
Enter the folder name in the New folder field.
Press Enter to create the folder.
To create a folder for patterns:
Select Add folder.
The system displays a new folder row in the list.
Enter the folder name in the New folder field.
Press Enter to create the folder.
To create a folder for code-based components:
</>) icon.Select Add folder.
The system displays a new folder row in the list.
Enter the folder name in the New folder field.
Press Enter to create the folder.
To rename a folder:
Select Rename.
Enter the new folder name.
Press Enter to save the changes.
To delete a folder:
Select Delete folder.
To reorder the folder sequence:
Click and hold the folder.
Drag the folder to the new location in the list.
Drop the folder to change the sequence.
Users move components and patterns across the following levels:
From the menu list into a folder.
From a folder to the menu list.
From one folder to another folder.
To move components and patterns between folders:
Click and hold the component or pattern.
Drag the component or pattern to the new folder.
Drop the component or pattern to complete the move.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.