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

Display more than one set of local tabs/task on a page

On my site I have nodes which 'belong' to other nodes. When on a child node, I want two sets of tabs/local-tasks - one for the parent node, and one for the child node.

I'm so nearly there with this, but have been foiled by the $trail and $trails variables which are static in scope and have no way of resetting them during a page view. This means I can physically show my two distinct sets of tabs/local-tasks, but on the second one I can't make any of the links/tabs 'active' as I can't reset $trail(s).

Does anyone have any ideas without hacking core?

Will CCK ever feature Per-field permissions?

Gmorn,

could anyone tell if Content Construction Kit will ever give the possibility to assign granular permissions to each of his fields?

formatiing forms layout, grouped fields, headings, etc...

I've been doing a lot of work with different kinds of form fields in my custom content module...

what I'm wondering is if there's a way to add other elements to the form page, to create different sections, group fields together, maybe put some of them inside a div block with a border so the user can see them grouped together, and have a some h1 headings to describe the groups

also if you know where to find information on customizing form themes please feel free to post it here, I haven't found it yet....

thanks in advance!
EK

why use Database abstraction layer?

why use Database abstraction layer instead of regular php mysql functions?

I normally use mysql_result() with 3 paramaters, but db_result() only takes 2, so I have no idea how to specify the field I want from a row with the result of a 'SELECT *' query

hook_insert is receiving an empty node

I've implemented hook_insert and hook_nodeapi, and both are receiving node as empty. Here's what I have for *_nodeapi:

function scholar_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {/*{{{*/
    print("<pre>");
    print("op = $op\n");
    var_dump($node);
    print("</pre>");
    ...
}

When I save my page, I see that op is prepare, then validate, then submit, then insert, and each time, node has everything set to null.

Viewing the data works fine (if there is already data in the database). I can even go to the edit page, and it will put the correct values in the form. It's just the insert and update that just won't work.

Any advice?

Thanks,
Richard

Pages

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