Problem/Motivation
Like for too many other pages we are returning raw html when it would be really easy to return instead a renderable array.
This way other modules could just alter it instead of overriding the full page (with menu_alter()) and we would save a lot of clashes between contrib modules.
Some modules overriding this page (and then clashing) are: Panels, Internationalization.
Proposed resolution
Remaining tasks
| Task | Novice task? | Contributor instructions | Complete? |
|---|---|---|---|
| Update the issue summary noting if allowed during the beta | Instructions |
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #25 | properly_build_page-1431168-25.patch | 3.73 KB | alansaviolobo |
| #22 | node_build_pages_1431168-22.patch | 2.94 KB | internetdevels |
| #8 | 1431168_node_build_pages_8.patch | 3.69 KB | dawehner |
| #7 | 1431168_node_build_pages_7.patch | 3.5 KB | dawehner |
| #5 | 1431168_node_build_pages_5.patch | 3.14 KB | jose reyero |
Comments
Comment #1
jose reyero commentedBetter title.
Comment #2
casey commentedI agree, but we are developing on the D8 branch.
Comment #3
jose reyero commentedOk, updated patch for D8.
And done the same to node_revision_overview() page.
Comment #4
gábor hojtsyLooks like a great idea! Do we have any test coverage for this page to ensure it works?
@Jose: please submit patches without the -dX ending, so they actually get tested. The -dX ending makes the patch bypass testing.
Comment #5
jose reyero commentedUpdated and renamed patch.
About the test coverage, since existing pages shouldn't change, existing tests will do
Comment #6
andypostLet's normalize a indent for this lines too
Do we have a formal conclusion about operations in tables? Some core's modules places then in one cell some in different. As I remember there was a troubles within field's table when i18n enbaled.
Comment #7
dawehnerThere is an issue about implementing a ui pattern for operation links: #1480854: Convert operation links to '#type' => 'operations'
Do we have a formal conclusion about operations in tables? Some core's modules places then in one cell some in different. As I remember there was a troubles within field's table when i18n enabled.
There seems to be no real conclusion about that.
There are places #theme 'links' is used. Here using actual keys gives you automatic helpful css classes which is kind of cool.
There are places like here on which just hard-coded links are used, which are hard to alter.
Personally i would preper to have some alterable code, so for example using #theme links would be the way to go. What do you think?
This patch is just about fixing the indentation problem.
Comment #8
dawehnerHere is a new patch which converts it to '#type' => 'link'
Comment #9
jose reyero commentedImprovements by @dereine look very good to me. About 'operation links' I've posted my comment there but anyway I don't think we need to wait for them to decide as whatever it is needed there, this patch will just ease the path for that.
Comment #10
das-peter commentedJust gave this a review and changed parts of the code to apply to the coding standards.
Unfortunately there's still following construct that looks really odd even if it complies to the standards:
Comment #11
dawehnerSome improvements for the uglyness.
Comment #12
das-peter commentedI'm absolutely fine with that. Now you've at least a small change to understand that :P
Comment #13
jair commentedNeeds reroll
Comment #14
jair commentedNeeds reroll
Comment #15
dawehner.
Comment #16
deepakaryan1988Re-rolling patch from #11
Comment #18
david.lukac commentedAssigning to me during DrupalCon Prague sprint.
Comment #19
david.lukac commentedRevision timestamp coming from node_revision_list() was referenced as
$revision->timestamp. Changing to$revision->revision_timestamp.Comment #21
xjm(Merging "node system" and "node.module" components for 8.x; disregard.)
Comment #22
internetdevels commentedUpdated patch for Drupal 8
Comment #23
oleksandr senenko commentedComment #24
yesct commentedpatch applies to d8 head. removing needs reroll tag.
Comment #25
alansaviolobo commentedreroll
Comment #27
yesct commentedComment #41
acbramley commentedIt looks like NodeController::addPage is already doing this.
The Revision routes will be covered in #3153559: Switch Node revision UI to generic UI if not already.
Closing as outdated.