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.
Hello,
I didn't like the idea of needing to hack page.tpl.php for the slides, so I removed it and added an optional region (where you can place a block on that region to place the slides).
Then I wrote a block code (see attachments) that queries for a custom bool field on a page. If it matches, then place the summary as the slide's contents.
You can see the results at https://ansol.org/
Yes, there may be a better solution, I'm not exactly an experience php/drupal hacker, but I hope this patch and block code spark an interesting discussion towards a better solution!
best to ye all,
Rui
Comment | File | Size | Author |
---|---|---|---|
corporateclean-slides-block.php_.txt | 972 bytes | RuiSeabra | |
corporateclean-slides.patch | 5.56 KB | RuiSeabra |
Comments
Comment #1
mhawker CreditAttribution: mhawker commentedThanks for sharing this, I understand the patch adding another region. I don't understand the block code though
If I created a block with slideshow views would the block code you attached be needed?