Drupal 7.2: Horizontal & Vertical Tabs- HOW?

Hey guys-
Using d7.2. I'm looking to create this setup, possibly w/ JQuery (or something similar that would provide real time tabs w/o refreshing the page).

Popular Visits Comments Recent

Category 1

Category 2

Category 3

Category 4

So the user would click on one of the category tabs on the left side (vertical), and then they can sort w/ the links at the top w/ real-time refresh/results, no page refreshing or loading required.

what override filename does template_preprocess_region api doc imply to use?

@ http://api.drupal.org/api/drupal/includes--theme.inc/function/template_p...

refers to code at 'includes/theme.inc' ...

  function template_preprocess_region(&$variables) {
  ...
  $variables['theme_hook_suggestions'][] = 'region__' . $variables['region'];
  ...

Do I read this to mean that for region-specific overrides, one should use:

region__(region_name).tpl.php

files?

[moved -> issue queue: http://drupal.org/node/120049] region-specific overrides not consistent -- some work, some don't

i'm trying to get the D7's region overrides working.

if in my (fusion) subtheme's 'page--front.tpl.php' I have

<? php print render($page['header']); ?>

, and in 'region--header.tpl.php' I simply add

 <div>BLAH BLAH</div>

i'd expect to see "BLAH BLAH" displayed on my front page. atm, it's not.

a similar addition to a copy of 'region.tpl.php' in my subtheme, otoh, DOES get changes picked up & displayed.

noting in html.tpl.php

Embedded YouTube video super-imposed over admin menus

Hi,

This is more of an annoyance than anything else since I can technically work around it, but when I embed a YouTube video in a blog post and promote it to the front page, it becomes superimposed over the admin menus when I try to access them. To illustrate what I'm talking about, I've uploaded a screenshot to PhotoBucket:
http://s1112.photobucket.com/albums/k494/jafawcett/?action=view&current=...

Drupal 7.2, Views: Adding Author's Name of a node

I'm sure this is VERY basic, but after 1/2 day or searching, I am finally posting for help.

I have a simple view that is displaying a list of node titles & other fields (view count, comment count, etc). I can't find how to add the name of the author who wrote the corresponding node to a field.

For example- the final result SHOULD look like this-

Title
by: Author Name
Views: # Comments: #

I have everything else working- just can't figure out how to add the author name field. What's the secret?
Thanks guys!

Ajax submit db_insert problem

Hello, I am trying to build a simple contact form using the form api but I haven't had much success with db_insert. I don't often post question here so I will start by copying my code in:


/*
* Implements hook_theme
*/
function contact_theme() {
return array(
'contact_nameform' => array(
'render element' => 'form',
'template' => 'contact_nameform',
),
);
}

/*
* Assign the elements of the form to variables
*/
function template_preprocess_contact_nameform(&$variables) {

$variables['contact_nameform'] = array();
$hidden = array();
//Provides variables named after form keys
foreach (element_children($variables['form']) as $key) {
$type = $variables['form'][$key]['#type'];
if ($type == 'hidden' || $type == 'token') {
$hidden[] = drupal_render($variables['form'][$key]);
}
else {
$variables['contact_nameform'][$key] = drupal_render($variables['form'][$key]);
}
}
// Hidden form elements have no value to the theme
$variables['contact_nameform']['hidden'] = implode($hidden);
// Collect all form elements
$variables['contact_nameform_form'] = implode($variables['contact_nameform']);
}

/*
* Implements hook_menu()
*/

function contact_menu() {
$items['contact'] = array(
'title' => 'View the sample form',
'page callback' => 'drupal_get_form',
'page arguments' => array('contact_nameform'),

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x