Patch (to be ported)
Project:
Corporate Clean
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 May 2013 at 22:02 UTC
Updated:
16 May 2013 at 20:02 UTC
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 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?