[consulting] Print Specific Message on admin/settings/admin
Sam Cohen
sam at samcohen.com
Tue Dec 8 16:30:13 UTC 2009
Oh, sorry, didn't see that you want this feature packaged as part of a
theme.
If it's in a theme, in page.tpl.php you can add an if() statement checking
the path and then adding the text based on it or in template.php under
preprocess page, you can check the path and then set the $vars['help']
variable, which will be sent to page.tpl.
Not sure if this is Drosher (Drupal Kosher) but it would work.
Sam
On Tue, Dec 8, 2009 at 11:25 AM, Holly Ferree <hferree at gmail.com> wrote:
> No problem adding another region, but how would people view the block
> when they install my theme? Can I put code into template.php to print a
> block for that page only? That would be a great solution.
>
> Holly Ferree
>
>
>
> On 12/8/09 11:20 AM, "Sam Cohen" <sam at samcohen.com> wrote:
>
> Why not just use a block? You might have to add a region if you don't have
> one at the top of the page, but that's very simple.
>
> Sam
>
>
> On Tue, Dec 8, 2009 at 11:18 AM, Steven Jones <steven at aella.co.uk> wrote:
>
> Hi Holly,
>
> You'll actually need to create a module that implements hook_help
> (probably easier than it sounds).
>
> If you read this page:
> http://drupal.org/node/206753
> and it's first two sub pages:
> http://drupal.org/node/206754
> http://drupal.org/node/206756
>
> then you'll have implemented your hook_help, and it'll be ready to
> customise to your hearts desire!
>
> Regards
> Steven Jones
>
> Phone : 02476 417 749
> Mobile : 07702 131 576
> Twitter : darthsteven
>
>
>
> 2009/12/8 Holly Ferree <hferree at gmail.com>:
> > I actually tried using it (so it either doesn't work or I'm doing
> something
> > wrong...(I'd bet the later)).
> > -------------------------
> >
> > I tried in hook_help() in the template.php:
> >
> > <?php
> >
> > function hook_help($path, $arg) {
> > switch ($path) {
> >
> > // Help info for the administration theme page
> >
> > case 'admin/settings/admin':
> > return '<p>' . t('This theme is integrated with the color module! To
> > customize this theme go to the <a
> > href="/admin/build/themes/settings/accolade">settings page</a>. ') .
> '</p>';
> > }
> > };
> >
> > ?>
> >
> > Thanks for your help,
> >
> > Holly Ferree, Graphic Designer, BFA
> > 813.786.0852
> > hferree at gmail.com
> > http://www.designbyholly.com/
> >
> >
> > On 12/8/09 5:45 AM, "Steven Jones" <steven at aella.co.uk> wrote:
> >
> >> Or you can use hook_help:
> >> http://api.drupal.org/api/function/hook_help
> >>
> >> Regards
> >> Steven Jones
> >>
> >> Phone : 02476 417 749
> >> Mobile : 07702 131 576
> >> Twitter : darthsteven
> >>
> >>
> >>
> >> 2009/12/8 Chris Miller <chris at trailheadinteractive.com>:
> >>> You can check $_GET['q'], or use the arg() function to check parts of
> the
> >>> current path.
> >>>
> >>> Chris.
> >>>
> >>> On Mon, Dec 7, 2009 at 2:07 PM, Holly Ferree <hferree at gmail.com>
> wrote:
> >>>>
> >>>> How do I print a specific message if the page is admin/settings/admin
> >>>> (administration theme page)?
> >>>>
> >>>> I just want a little note at the top of the page to say that the color
> >>>> module can be used with the theme.
> >>>>
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Holly Ferree, Graphic Designer, BFA
> >>>> hferree at gmail.com
> >>>> http://www.designbyholly.com/
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> consulting mailing list
> >>>> consulting at drupal.org
> >>>> http://lists.drupal.org/mailman/listinfo/consulting
> >>>
> >>>
> >>>
> >>> --
> >>> Chris Miller
> >>> Trailhead Interactive
> >>> http://www.trailheadinteractive.com
> >>> 406-750-0107
> >>>
> >>> _______________________________________________
> >>> consulting mailing list
> >>> consulting at drupal.org
> >>> http://lists.drupal.org/mailman/listinfo/consulting
> >>>
> >>>
> >> _______________________________________________
> >> consulting mailing list
> >> consulting at drupal.org
> >> http://lists.drupal.org/mailman/listinfo/consulting
> >
> >
> >
> > _______________________________________________
> > consulting mailing list
> > consulting at drupal.org
> > http://lists.drupal.org/mailman/listinfo/consulting
> >
> _______________________________________________
> consulting mailing list
> consulting at drupal.org
> http://lists.drupal.org/mailman/listinfo/consulting
>
>
> ------------------------------
> _______________________________________________
> consulting mailing list
> consulting at drupal.org
> http://lists.drupal.org/mailman/listinfo/consulting
>
>
>
> Holly Ferree, Graphic Designer, BFA
> 813.786.0852
> hferree at gmail.com
> http://www.designbyholly.com/
>
> _______________________________________________
> consulting mailing list
> consulting at drupal.org
> http://lists.drupal.org/mailman/listinfo/consulting
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/consulting/attachments/20091208/5d9e8235/attachment-0001.html
More information about the consulting
mailing list