I've had to move my page title into my node to accommodate a client need, but I'm unable to now get a title to display on a page view of my views list. The argument I have to display title on edit, admin and track pages is:
<?php if ($title && ((arg(2) == 'track') || (arg(2) == 'edit') ||
(arg(0) == 'admin'))): ?>
<h1 class="title"><?php echo $title; ?></h1>
<?php endif; ?>
and I'm wondering if there's a generic argument to include either all views list pages, or, the inverse, just exclude all node pages (NB: I'm using CCK, so have a lot of content types)?
Sniffing out other possibilities...
I know that I can create different page templates for my content-types, but can I create one different page template for ALL my CCK content-types?
Here's the code I'd through into template.php to get the ability to add individual content-type templates:
function _phptemplate_variables($hook, $vars) {
switch ($hook) {
case 'page':
if ($vars['node'] && arg(2) != 'edit') {
$vars['template_files'][] = 'page-'. $vars['node']->type;
}
break;
}
return $vars;
}
Cheers
Steve