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.
Tried to implement the code seen at the link below but can't get it to work. It just kills the page. Any help is appreciated. Thanks
http://drupal.org/node/293188
Comment | File | Size | Author |
---|---|---|---|
#4 | first_last_block_classes-1138206.patch | 6.9 KB | damiankloip |
#3 | first_last_block_classes-1138206.patch | 987 bytes | damiankloip |
Comments
Comment #1
Liviu CreditAttribution: Liviu commentedI'm interested in this too. trying to make the first and last class appear on blocks, same as on zen theme.
Thank you for your support.
Comment #2
damiankloip CreditAttribution: damiankloip commentedThe issue you are linking to is referring to D5. I think we would do this in a theme preprocess function instead for the blocks in D6 and D7.
Comment #3
damiankloip CreditAttribution: damiankloip commentedHere is a patch to add first/last functionality to the D7 version, as this is the version I am currently using and thought it would want to be in there anyway! Also included in this patch is the fix for http://drupal.org/node/1085670
Comment #4
damiankloip CreditAttribution: damiankloip commentedSteve, here is a D6 patch too... I have also corrected the indentation - hence the bigger patch!
Comment #5
damiankloip CreditAttribution: damiankloip commentedThis change has been committed for both branches. first/last classes have been added to nodes in the D7 branch too.