[support] page titles for views?
Stefan Borchert
stefan at borchert.cc
Tue Oct 2 06:50:08 UTC 2007
sander-martijn schrieb:
> I just figured it out - apparently it has to be within if ($hook ==
> 'page') {} in order to work. As soon as I put it in there (where the
> page_title module code lives) it worked.
> [snip]
> Not maintainable and not recommended, but will get me through this
> hurdle. If anyone has a better suggestion I'm still open to it as this
> is not the best idea.
>
Hi.
Did you try to set the page_header (title) within the argument handling
code of the view?
I'm using this in a view to "unset" the title if there are any arguments:
<code>
if (count($args) > 0) {
$view->page_header = '';
}
</code>
hth,
Stefan
--
Stefan Borchert
stefan at borchert.cc
More information about the support
mailing list