I created a help tip for a page, and set the block region to 'content'. The tip shows up as expected, but it is underneath the actual content it is providing help on.
I tried changing the module's weight to -5 as well as the block's weight to -5 but neither seems to make a difference. This might not be something you can fix at your module level but I figured I'd point it out anyway. :)
Comments
Comment #1
desm0n commentedThis is theme specific.
What i did to get my help tips above the content was create another content region in my theme.
I just called it content top and added this to bluemarine just under the
if ($mission) {print $mission}statement. Add
print $content_topThen just assign the block to that region.
Hope that helps.
Comment #2
desm0n commentedoops, forgot about php tags parsing.
that should be find
<?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>and add below
<?php print $content_top ?>Comment #3
desm0n commentedsorry, its early and i just woke :) I missed a step.
If your theme is a phptemplate also add
content' => t('content'),under the function phptemplate_regions() { subroutine in the phptemplate.engine
So
Comment #4
webchickThanks for the help! That looks like it'll work great.
Just out of curiosity though, there's not by any chance a way to solve this within the module code is there? There are going to be several themes available to users of this site and I'd love to not have to remember to change each theme that I install to add this region. :)
Comment #5
Dave Cohen commentedNo, there's no way in the helptip module. Adding a theme region is exactly the way to do it. As you can imagine, many people will want help tips to appear in many different places. Blocks make this possible. To try to handle it within the module would be re-inventing the wheel.
Comment #6
(not verified) commentedComment #7
geodaniel commentedJust a quick note to say that the regions can be edited on a per-theme basis (just override the phptemplate_regions() function by creating a themename_regions() in your template.php file). Not editing core files is a Good Thing :)