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

Maintaining user data between callbacks

My Goal is to maintain user-submitted data between callbacks. I think I do everything I should but can't make it work.

I made a simple module to illustrate my issue:

node/add/<modulename> does not bring up a form

Hoi.

After searching for an answer for the last few hours, I've given up. My problem is that I can't get the module to bring up a form to create new content. I've used node_example and another module as reference, but without help. More precisely, my problem is that, when I go to node/add/newspool (newspool is the name of the module) nothing but a list of content types shows up. I think I've missed some part of registering a content type there, because it's not listed on node/add.

Form_select with multiple selection enabled

HI,

I posted a topic a while back and it got no replies. I think it was because the problem was not stated clearly enough. I'll try again (and I also have a few other observations about the problem that may help):

I'm creating a module that defines a new node type. In the form_hook there is a call to form_select enabling multiple selections. It is my understanding that the $values parameter is handed an array this way:

array($node->cat1{0},$node->cat1{1},$node->cat1{2},$node->cat1{3},$node->cat1{4})

The entire function call is of the following form:

$output .= form_select(t('Category 1 (select up to 5)'), 'cat1',
array($node->cat1{0},$node->cat1{1},$node->cat1{2},$node->cat1{3},$node->cat1{4}),
_nodename_get_options('cat1'),'For multiple selections: PC - hold down key; Mac - hold down key','',TRUE,TRUE);
/*
( _get_options is the function that returns the associative options array. )
*/

I am defining a node with this module, so I am using a table that joins on the node table for the data in the form. So in the update etc. hooks I refer to the form values as:

'update.... cat1item1=$node->cat1{1}, cat1item2=$node->cat1{2},... '

Interestingly, what happens is the data in the table is set correctly, but I only know this due to checking the mysql table directly. The data is not accessible to output and is not accessed by the form hook or by the page hook despite my attempts. Here is what the failed page hook code looks like:

CCK and jscalendar

Hi, all

I try to assign jscalendar functionality to my CKK node.
How can I add "jscalendar" class to DATE textfield in my created CCK node. I know that FormsAPI must be used, but i need the real todo algorithm.

Anybody help me, please!?

Substring search

Hi,
Is there some simple quick way to make search to find substrings?
In slavonic languages which have polymorphic words not well algoritmizable it would be very appreciated.
Imagine you have words like "dom, domov, domu, domom, domovom, domáci, domáca" etc.
In substring find putting "dom" as a key is enough to find all theese words.
Can anyone help ?

Node title creates a new Taxonomy Term

Using CCK to create a node type, is there a way that the node Title can automatically create a Taxonomy Term? Similar to Free Tagging, but linked to the nodes title.

Anyone done this?

Pages

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