I have created 2 custom blocks and having problems getting the blocks to float left after the article just before the comments. Here is what i have done so far.
In template.php i added mygarland_regions function and modified _phptemplate_variables to out put my regions:
function mygarland_regions() {
return array(
'sidebar_right' => t('right sidebar'),
'sidebar_left' => t('left sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
'below_article1' => t('below article1'),
'below_article2' => t('below article2'),
);
}
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
$output = '<span class="clear"></span>';
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
return $vars;
}
// Load the node region only if we're not in a teaser view.
if ($hook == 'node' && !$vars['teaser']){
// Load region content assigned via blocks.
foreach (array('below_article1', 'below_article2') as $region) {
$vars[$region] = theme('blocks', $region);
}
return $vars;
}
return array();
}
I'm having trouble displaying the user profile category tabs. I modified a theme and now it's not showing. It doesn't have anything to do with the page template, the block template or the node template. I'm starting to think it might be to do with the css.
I have spent the entire last weekend trying to work, and re-work the coding in the .css to get the active page links from being black to another color. What am I doing wrong. www.chicagocrypt.com if you would like to see the problem.
I am making a site somewhat similar to facebook for my school and i want to use drupal as a "back-end" calling the drupal code and displaying it where i want on different pages depending where the user goes. Maby i have missed this on the forums and i apoligize if i do but i cant seem to find it anywhere.
Any suggestions would be greatly appreciated.
So I have been banging my head against the wall for the last few hours trying to figure this out. Here's the deal:
I have a content type called clients and I can't figure out how to customize each node for this.
When I create a template file page-clients.tpl.php it works on http://mysite.com/clients but not http://mysite.com/clients/client-title
I have to customize the page output not the node output. Please help how do I do it.