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

Where to manipulate teaser

I build my own Module where I can create hotels. My hook_form() implementation has various fields like description,address,telephone numer, etc. . When a user creates a new accommodation, the teaser will be created based on the body field in the form. But I want to create my own teaser that contains the telephone numer and other stuff. Can I simply modify the teaser by adding a database query in hook_insert() and hook_update() that directly accesses the node table and changes the teaser? Or is there a special Drupal way?

Display data back to user in a page after myform_form_submit?

How can I display a user's entered data back to the user in a page after myform_form_submit? It's easy enough to do a drupal_set_message(), but what I actually want is a thank you page with a spot below the standard thank you message to show the user's data and allow them to print the data out.

Voting by taxonomy???

I notice that while there are a number of voting modules, a number of the widely discussed ones, fivestar, jvoting, mediumvote, etc., seem to allow control of voting based on content type.... Does any one of these modules provide a way to limit voting depending on taxonomy? I guess I could theme voting out for certain taxonomies, but I'm curious if ANY voting module allows you to control voting based on taxonomy on top of content type? If this can be done, I'd put $50 up for anyone willing to take it on... thanks, art

Creating my own search form

The standard search form provided is too basic for what I need. Therefore I decided to follow the advice at http://api.drupal.org/api/group/search/5 where it says...

If your module needs to provide a more complicated search form, then you need to implement it yourself without hook_search(). In that case, you should define it as a local task (tab) under the /search page (e.g. /search/mymodule) so that users can easily find it.

I need to define parent/child relationship between two kinds of nodes when creating site contents

Hi,

I'm a newbie in drupal. I have defined two new kinds of nodes. A MultimediaStory and a paragraph node. Now I need a parent/child relationship between these two nodes. I mean every MultimediaStory is consisted of some paragraphs. So when I add a new MultimediaStory I want to add some paragraphs to it in the same page that I'm defining other attributes of the MultimediaStory . These paragraphs can be created at the moment or be selected from a list of currently available paragraphs. Again when I edit a MultimediaStory I need to be able to add/edit and remove the paragraphs.

Porting AJAX File Browser to Drupal

I love the WebFM module, but I cannot seem to get that module to allow an authenticated user to browse the file structure and download files without allowing them to add, edit, or delete files and folders. I am looking for the same functionality, but for the anonymous user.

Thankfully I found AJAX File Browser!

Pages

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