-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[META] Convert listings to Views #151
Comments
In creating all these default views for entities in Backdrop, should we decide on a standard naming system for both the administrative view name and the machine name? Also, should these all be separate views, or should views for the same entity types be combined? E.g. make the "Who's new" block a block display on the 'admin/people' view (which would be a page display)... |
If we're shooting for consistency, perhaps we try As for displays vs. separate views, these should definitely be separate views. Displays within a single view can be difficult to locate, especially if there are multiple page or block displays on the same view. The overall admin-listing isn't capable of displaying multiple paths at the same time, so finding the right view is hindered when they are combined. In addition, the "overridden" vs. "default" experience is still really difficult for new and experienced users alike, which we should avoid in our out-of-box views. |
@quicksketch it's better to use |
@quicksketch I think it's update_variable_del() not variable_del() ? |
Thanks! And actually we should use
Also correct. Updated. |
Marked #1101 duplicate of this one. |
The fact that the "Who's new" and "Who's online" blocks are missing has been brought up on Gitter today. Perhaps we should consider shipping core with a view that includes those 2 blocks? |
We should convert the core listings into views. Converting the following lists to views requires:
Conversions
Pages:
Blocks:
Administrative pages:
Other things:
Upgrade paths
Providing an upgrade path is not necessarily a novice task, but the code examples below should get you close. Please note, the code below has not been tested and is here for reference purposes only :)
Write an update hook for the appropriate module in it's .install file.
Assemble the data needed for the view.
$data
.$data
array.$data
is set to TRUE.Related
Relevant issues needed for some conversions:
Relevant Drupal.org issue: [Meta] Convert core listings to Views
The text was updated successfully, but these errors were encountered: