Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
node system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Apr 2009 at 06:51 UTC
Updated:
27 Jun 2020 at 15:35 UTC
Jump to comment: Most recent
Comments
Comment #1
damien tournoud commentedSeeing tha_sun comments on #445902: (bool) menu_get_object() is *not* an equivalent of $page, there are also use cases of a "full page view" on something that is not a full page (think panels), so we probably need a special alter hook at the bottom of node_show().
Comment #2
sunsubscribing
Comment #3
moshe weitzman commentedWell, we need to approach this from the book.module's point of view (for example). Assuming we are dealing with a node thats in a book, when does it want its footer to be shown
I don't know the right answer here, but I have some distaste for adding a new drupal_alter() to fix this. It sounds too special case.
Comment #4
sunok. I think what we want is:
- Remove the $teaser argument, too.
- Turn $teaser into a node BUILD_MODE.
That would
- make the teaser output highly configurable, less hard-coded
- remove nasty magic from core for node teasers
- remove the confusion we have with $teaser and (gone) $page now.
- probably help in our quest to split the node body field into separate body and teaser fields.
Comment #5
moshe weitzman commentedi think thats sane. yched and eaton have done some thinking on this. would be good to hear from them.
Comment #6
catchI hate the teaser and page variables but we shouldn't just kill them without alternatives. Ideas here are good, subscribing etc.
Comment #7
yched commented$teaser : Please please read and comment on #409750: Overhaul and extend node build modes. This is exactly what it is about.
Comment #8
sunTagging for feature freeze.
Comment #9
sunTagging absolutely critical clean-ups for D7. Do not touch this tag. Please either help with this or one of the other patches having this tag.
What's left in here? Will Panels be able to render an arbitrary node view in a full node view?
Comment #10
sunStudying this issue once again, I think that #409750: Overhaul and extend node build modes accounted for everything that has been mentioned in here. Hence, marking as duplicate.
Comment #11
damien tournoud commentedThere are still several (bool)menu_get_object() in core. I guess those need to be fixed?
Comment #12
sunRight.
Comment #13
damien tournoud commentedThis is now a duplicate of #658314: $page variable in node.tpl.php is buggy.
Comment #14
gábor hojtsyWhile #658314: $page variable in node.tpl.php is buggy attempted to solve this issue for some cases, the current code still works so that you cannot display the same node in a different build mode on its own page. It always displays in full mode regardless of what you ask it to do: #721754: A node cannot be displayed in different view mode on its own page.
Comment #15
gisleRemoving non-canonical duplicate tag. See #2426171: Multiple tags similar to 'API clean-up' for background.