This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Help Needed! Image and image gallery module

I am desperately seeking some assistance with not really a huge problem, but one that has completely baffled me and once the answer is realize Im going to spend the rest of the day thinking of how obvious it was and how stupid I was for missing it. What I need to do is configure a block that will display only the most recent image of a specific gallery. Can I do this with out making significant changes to the image module? It seems there has to be a way to do it just through the administer menus, but I can't get it right. Please help a new user just trying to make a go of it!

Add valign top to array of cells

I can't seem to get 'valign' => t('top') for $blocks but can get it work with $texts.

    $rows[] = array($blocks, array('data' => $texts, 'align' => t('center'), 'valign' => t('top'), 'style' => t('text-align: left; width: 553px;')));

Any ideas?

Thanks!

how to create one menu per og group?

Hi,

Is there an easy way to allow each organic group to have and populate it's own navigation menu? I spent the day trying and searching the forums and don't have a satisfying solution.

This is what I tried:

Create a menu with the name of the group.
Then assign it to the group using og_block_visibility.

But:

Duplicating page.module

I was thinking of duplicating page.module which would only differ in name, but the fields inside it are pretty much the same.

The reason I'm doing this is to attach a different taxonomy tag to each x.page.module.

Will just renaming this file work or do I need to do something within the code so that it is recognized as a different module?

Thanks!

Still with form redering

I'm still working on form theming and I didn't get why a form (below) that I put in a module doesn't respect my #MAX issues and on the contrary if I put it in a funcion _page it does.

It seems the form overwrite all my directives.
<?php
function mud_form(&$node) {

// In order to be able to attach taxonomy terms to this node, we need
// to display the appropriate form elements.
if (function_exists('taxonomy_node_form')) {
$output .= implode('', taxonomy_node_form('mud', $node));
}
$form['numerazione'] = array(
'#tree' => TRUE,
'#type' => 'fieldset',
'#title' => t('Riferimenti della registrazione'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
//'#theme' => 'mud_form',
);
$form['numerazione']['car_num'] = array(
'#type' => 'textfield',
'#title' => t('carico/scarico:'),
'#required' => TRUE,
'#default_value' => $node->car_scar,
'#size' => 10,
'#maxlength' => 10,
'#inline' => TRUE
);
$form['numerazione']['car_num'] = array(
'#type' => 'textfield',
'#title' => t('N° registrazione'),
'#required' => TRUE,
'#default_value' => $node->car_num,
'#size' => 80,
'#maxlength' => 255,
'#inline' => TRUE
);
$form['numerazione']['formulario'] = array(
'#type' => 'textfield',
'#title' => t('N° formulario'),
'#size' => 80,
'#maxlength' => 255,

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions