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

menu_get_menu($pid);

Im trying to use this function to generate a custom menu. It is almost 100% what I want but I dont think it has the ability to tell me if a menu is expanded or not. IE: It gives me all the children, the whole menu. I only want the visible layer. Is there a better function for me to use?

multipage forms and required nodeapi elements

I've got a multipage form that I have working pretty well so far. However, I am using a nodepai module (location) to add form elements that I want to show on the second screen. I want site admins to be able to determine which address components are required, but the handbook says to not set the '#required' flag in hook_form. The following code in mymodule_form_alter does not seem to work:

$form['location']['city']['#required'] = FALSE; 

Note that mymodule's name starts with an "s" and comes after location.

invalid url returned for google sitmap

Running drupal 4.7 with google sitemap module showing version 4.7.12 . Mod rewrite enabled and in use.

Problem:

  • submitting repeated sitemaps to google produces error of Invalid URL for the first 10 URLs then drops the map.

Actions taken to remedy the situation:

Storing dynamically generated form pages

Hello ,

I am putting together a contest module and am currently writing a backend administration page which asks the administrator various questions and then generates the form on a page submission .

I can generate the form on the page submission that works fine and i can store the form in the variables table but what i am not sure how to do at the moment is to how to save the form content as a node and access the node like any other node as /node/1234 for example

Would someone offer some guidance here ?

Best Regards
Paul

News Page with aggregator2 nodes?

Is there any work being done on enabling News Page to work with aggregator2 nodes?

If not, how is it possible to build new node or block containing:

-- the title/teaser of all nodes
-->all items containing user-specified keywords
---->from all nodes of a specific node type
---->from all nodes tagged with a specific category term
unless
-->they contain user-specified 'exclusion keywords'

any help welcomed!

idea -ajax theme builder

I am not sure how feasable (or silly) this but, maybe it might ignite some ideas towards, I am not a coder if the idea may not be well founded it is my lack of knowledge of coding and technologies :)

looking to some ideas on ajax form builders -Drupal on progress demo of
http://www.freewebs.com/socdemocode/prototype0/
and others
http://formassembly.com/form-builder-v2.3/
http://www.jotform.com/
http://wufoo.com/demo/

If ajax form builders can build Text input area, Radio buttons, The Text Area, Check Box etc. can they also build themlate elements of html, css, php functions, elements, clases variables

ie.
> add a class
> add a divider
> add a column etc.
http://www.w3.org/TR/html401/index/elements.html
http://www.w3.org/TR/html401/index/attributes.html

add 'content' => t('content'),
add 'header' => t('header'),
add 'right' => t('sidebar'),
add 'left' => t('sidebar'),
add 'footer' => t('footer'),
add 'floater' => t('floater'), etc.

if it is possible Drupal might have full flegged online Template builder

here is a good collection of libraries might be used
http://edevil.wordpress.com/2005/11/14/javascript-libraries-roundup/

maybe it might ignite some ideas towards, as i said i am not a coder if the idea sounds not well founded it is my ignorence of coding and technologies :)

ps: i am not sure I am posting this to the right point in forums, let me know if there is more appropriate place (maybe it should go to theme development?)

Pages

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