Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently there is a custom area handler used for the empty text in #1806334: Replace the node listing at /node with a view. This should be an option on area handlers to override the title, if the view is empty.
I have code for this but it would be better to wait for #1807624: Saving and rendering in empty region for 'Global: unfiltered' text does not work to be committed, as it fixes the empty area handling. I will then re roll what I have for this.
Comment | File | Size | Author |
---|---|---|---|
#9 | 1808542-9.patch | 3.21 KB | damiankloip |
#6 | 1808542-6.patch | 3.21 KB | damiankloip |
#4 | 1808542-4.patch | 1.88 KB | damiankloip |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedComment #2
dawehnerFor me it seems to make more sense to have an extra area handler which can override the title and one which can just display some custom text.
Comment #3
damiankloip CreditAttribution: damiankloip commentedGood idea. I'll modify it for that!
Comment #4
damiankloip CreditAttribution: damiankloip commentedComment #5
dawehnerCan haz commentz?
Does this support tokens? We might refer them in the form as well.
Just a nitpick: An empty string sounds helpful.
Comment #6
damiankloip CreditAttribution: damiankloip commentedThanks for the review. Comments added, render() now returns an empty string. I have also added a test for this.
I have created a new issue so we can move the token code into the AreaPluginBase class: #1808648: Move tokenization form code into AreaPluginBase and use that in this plugin.
Comment #7
tim.plunkettI thought we were switching to 'page_1' everywhere?
This is indented too far.
Comment #8
damiankloip CreditAttribution: damiankloip commentedIndentation, schoolboy error.
When we commit #1793700: The wizard creates "page" as first display id even though the views UI itself creates page_1 I will post a new patch for testing with the 'page_1' display.
Comment #9
damiankloip CreditAttribution: damiankloip commentedok, looks like it's in :)
Comment #10
tim.plunkettCommitted!
http://drupalcode.org/project/views.git/commit/41bc6a3