The welcome message that's displayed on new Drupal websites is not themable. This is presented in node_page_default, and generates HTML, so it makes sense to theme it. This patch creates a theme_node_default_message function, and sticks the entry in the node theme registry.
The reason I'm putting this patch together is because I've seen client sites that hack core to change what's displayed there....
| Comment | File | Size | Author |
|---|---|---|---|
| node_page_default_theme.patch | 6.35 KB | robloach |
Comments
Comment #1
ultimateboy commentedWhat about creating a welcome message page node within the default install profile. We can then promote that node to the front page and sticky. That also kills the "where did my help message go" bug.
Comment #2
robloachBut what happens on /node when there arn't any nodes? Forward to /node/add?
Comment #3
ultimateboy commentedOn an 'expert' install, there simply would not be any nodes to display. $content in the page template would be NULL. And because blocks are placed based on the node, no blocks would be enabled, so all regions would be NULL. Therefore, we should enable a new keyword in the block configuration page so that we can set "Show on only the listed pages" to
<none>. Then set the default of the navigation and user login block to be<none>so that they will display on any page with no nodes. Since the expert install would have no nodes, these blocks would appear giving you a display of only the default blocks.Comment #4
robloachI'm not sure I'm much of a fan of displaying nothing to the user, particularly if they might accidentally delete the welcome node and then be completely lost. This isn't something that's specific to the default install profile, but all Drupal install profiles....
Comment #6
pasqualleI do not believe that the welcome message is still hard coded into the node_page_default() function. As dww stated #126221-20: Make 'node' empty text themable. this is a serious bug in Drupal core not really a feature..
Would it be possible to make the welcome message a help page? Because it should be accessible even after the site has a front page..
Comment #7
robloach#126221: Make 'node' empty text themable.