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

desm0n’s picture

This 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_top

Then just assign the block to that region.

Hope that helps.

desm0n’s picture

oops, 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 ?>

desm0n’s picture

sorry, 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

function phptemplate_regions() {
  return array(
       'left' => t('left sidebar'),
       'right' => t('right sidebar'),
       'content' => t('content'),
       'content_top' => t('content top'),
       'header' => t('header'),
       'footer' => t('footer')
  );
}
webchick’s picture

Thanks 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. :)

Dave Cohen’s picture

Status: Active » Fixed

No, 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)
geodaniel’s picture

Just 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 :)