In 4.7 you can assign regions to any template (node, comment, etc.)
I at least had overlooked the fact that in 4.7 we have the ability to assign regions not just to the page but to any other PHPTempalte template, e.g., node.tpl.php. I've updated the handbook with instructions on how to do this, http://drupal.org/node/29139. This approach should allow much more flexibility in theme design and in block coding for targetted areas, though some care will be needed to make it work intiutively. Issues include: * Users may be confused if they assign blocks to a region that only appears on node pages * Need to distinguish between full node listings and teasers. See also this issue http://drupal.org/node/67681
pretty cool. thanks for writing this up. sometimes i long for the module provided regions that i think you coded into a version of the regions patch way back when. Nedjo Rogers wrote:
I at least had overlooked the fact that in 4.7 we have the ability to assign regions not just to the page but to any other PHPTempalte template, e.g., node.tpl.php. I've updated the handbook with instructions on how to do this, http://drupal.org/node/29139.
This approach should allow much more flexibility in theme design and in block coding for targetted areas, though some care will be needed to make it work intiutively. Issues include:
* Users may be confused if they assign blocks to a region that only appears on node pages * Need to distinguish between full node listings and teasers.
See also this issue http://drupal.org/node/67681
Moshe Weitzman wrote:
pretty cool. thanks for writing this up.
sometimes i long for the module provided regions that i think you coded into a version of the regions patch way back when.
Wading into this completely without having read much, but seeing the brilliance that Nedjo pointed out, it occurs to me... could one not use drupal_set_content('arbitrary_region_value', $content) and then use theme('blocks', 'arbitrary_region_value') to display it? Thus giving, effectively, module coded regions that need only a tiny bit of help to be displayed in a template? Actually, from looking at the code, drupal_get_content('arbitrary_region_value') would be better since it wouldn't hit the module_invoke.
On Jun 7, 2006, at 8:53 AM, Nedjo Rogers wrote:
I at least had overlooked the fact that in 4.7 we have the ability to assign regions not just to the page but to any other PHPTempalte template, e.g., node.tpl.php. I've updated the handbook with instructions on how to do this, http://drupal.org/node/29139.
This approach should allow much more flexibility in theme design and in block coding for targetted areas, though some care will be needed to make it work intiutively. Issues include:
* Users may be confused if they assign blocks to a region that only appears on node pages * Need to distinguish between full node listings and teasers.
See also this issue http://drupal.org/node/67681
Awesome!! I'm cc'ing Docs list, as there now can be some comment cleanup on that page http://drupal.org/node/29139 regarding just this question. Laura
Awesome!!
I'm cc'ing Docs list, as there now can be some comment cleanup on that page http://drupal.org/node/29139 regarding just this question.
Laura
FWIW I recently added a HOWTO on designing a frontpage with regions. But I cannot find it back (do we really need to restructure the handbook ever few months? :) ) Bèr
Here it is http://drupal.org/node/65064 (I bookmarked it, so I would read it later. I did not search or navigate to it). On 6/8/06, Bèr Kessels <ber@webschuur.com> wrote:
Awesome!!
I'm cc'ing Docs list, as there now can be some comment cleanup on that page http://drupal.org/node/29139 regarding just this question.
Laura
FWIW I recently added a HOWTO on designing a frontpage with regions. But I cannot find it back (do we really need to restructure the handbook ever few months? :) )
Bèr
Bèr Kessels wrote:
Awesome!!
I'm cc'ing Docs list, as there now can be some comment cleanup on that page http://drupal.org/node/29139 regarding just this question.
Laura
FWIW I recently added a HOWTO on designing a frontpage with regions. But I cannot find it back (do we really need to restructure the handbook ever few months? :) )
http://drupal.org/search/node/frontpage+region Cheers, Gerhard
Nedjo Rogers wrote:
I at least had overlooked the fact that in 4.7 we have the ability to assign regions not just to the page but to any other PHPTempalte template, e.g., node.tpl.php. I've updated the handbook with instructions on how to do this, http://drupal.org/node/29139.
This approach should allow much more flexibility in theme design and in block coding for targetted areas, though some care will be needed to make it work intiutively. Issues include:
* Users may be confused if they assign blocks to a region that only appears on node pages * Need to distinguish between full node listings and teasers.
See also this issue http://drupal.org/node/67681 Weird! I wrote up a different method on doing that today without having known that you did the same thing: http://www.nicklewis.org/node/846
Clearly, you got there first! -Nick Lewis http:///www.nicklewis.org
Nick Lewis wrote:
Nedjo Rogers wrote:
I at least had overlooked the fact that in 4.7 we have the ability to assign regions not just to the page but to any other PHPTempalte template, e.g., node.tpl.php. I've updated the handbook with instructions on how to do this, http://drupal.org/node/29139.
This approach should allow much more flexibility in theme design and in block coding for targetted areas, though some care will be needed to make it work intiutively. Issues include:
* Users may be confused if they assign blocks to a region that only appears on node pages * Need to distinguish between full node listings and teasers.
See also this issue http://drupal.org/node/67681 Weird! I wrote up a different method on doing that today without having known that you did the same thing: http://www.nicklewis.org/node/846
I actually was doing something similar shortly before those were posted. Main difference I can see is my use of drupal_set_content(). -- Neil Drumm http://delocalizedham.com/
participants (9)
-
Bèr Kessels -
Earl Miles -
Gerhard Killesreiter -
Khalid B -
Laura Scott -
Moshe Weitzman -
Nedjo Rogers -
Neil Drumm -
Nick Lewis