Is it possible to merge both sidebars in a 7.x zen sub-theme?

I'm hoping to achieve a 2 column zen sub-theme layout; content being in the main column + a single, wide right sidebar. I know where the CSS properties are in layout-fixed.css for 2 sidebars + main content column but hesitated to make one of the sidebars 0 in width just in case I may need to display a split/two right sidebars layout @some point.

1. Is it better to achieve this within custom Panels?
2. Are there any modules which behave like the widgets used in Wordpress to populate a wider sidebar?

Thanks.

Dynamic Node Title

I'm trying to create a module that modifies how the title is displayed for certain nodes. I tried using hook_node_view() but that wouldn't change the title when the node was displayed as a page or in the admin overlay. Then I used hook_process(), which now allows me to modify the node's title when it is displayed as either a node or a page, but that still doesn't change how it is displayed in the admin overlay. (Why doesn't the admin overlay use hook_node_view()?)

Theme out, remains in block tab

I tried a theme and then removed said theme. All worked great, except when I go to blocks the theme is still there, always on top. The theme also shows up in settings. Any suggestions on how to remove a deleted theme?

Thank you.

user registration form with ajax

hi i get this error message when i select an option from my custom form for user registration.

Notice: Undefined index: mail in user_account_form_validate() (line 1207 of C:\wamp\www\soccerleague\modules\user\user.module).

this is my hook_form_alter code.

function soccerleague_form_alter(&$form, &$form_state, $form_id) {
$form['#tree'] = TRUE;
if(empty($form_state['values']['soccer_user_team']['team_division']))
$form_state['div_select'] = 1;
else
$form_state['div_select'] = $form_state['values']['soccer_user_team']['team_division'];
$div_select= $form_state['div_select'];
if($form_id == 'user_register_form'){
$options= getSoccerDivision();
$form['soccer_user_team']= array(
'#type'=> 'fieldset',
'#title'=> t('My team name'),
);
$form['soccer_user_team']['team_division']= array(
'#type'=> 'select',
'#title'=> t('Select Division'),
'#description'=> t('select the division your team is in'),
'#options'=> $options,
'#ajax'=> array(
'callback'=> 'soccer_getdivision_callback',
'wrapper'=> 'user_register_division_wrapper',
),
);
$form['soccer_user_team']['team_name'] = array(
'#type'=> 'select',
'#title'=> t('Team name'),
'#description'=> t('select the team you are playing for'),
'#options'=> getSoccerTeamName($div_select),

How do you make a fieldset in a Drupal7 node?

I must be missing something really obvious. In D6 fieldsets were in CCK and worked like another field. In D7, fields are in core but I can't find any reference to fieldsets... help, anyone?

Clear field cache...?

What is the best way to clear cache_field only?

Is there a way to do this only for a particular field?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x