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

Set shipping charge

Can any body let me know how to add shipping charge to the final amount depending on the postal code.

Imagefield, Imagecache, CCK, Contemplate teaser problem

I am using the above modules to create a system where each node is identified by a title and picture. The title and picture are shown in a teaser, and the teasers are indexed on a page allowing someone to identify a node by the title or image.

I'm using the development versions of imagefield and imagecache for the feature that allows different imagecache profiles in the teaser and body so that the teaser view has a smaller picture and body has full picture.

I'm also using contemplate to remove all node fields except title and picture for the teaser display.

Problem is, when i edit the teaser display in contemplate, it caused the body and teaser BOTH to use the "teaser" imagecache profile, so I get a small picture in the body.

After some poking around, I solved the problem.

The function imagefield_field, case 'view', determines whether to output using the teaser or body profile, so contemplate should be calling this function once for the body and once for the teaser, with teaser=0, page=1 for body and teaser=1,page=0 for the teaser.

However, contemplate is calling imagefield_field with teaser=1 always
(it seems that it calls it four times, twice with teaser=0 and once with teaser=1, but I don't know enough about the code/ couldn't trace the function calls well enough to understand what the other calls are for)

The problem is that imagefield_field ONLY checks if 'teaser' is set, not if 'page' is set.

documentation?

Hey,

Is there any current documentation on creating modules?

Thanks.

Implementing the search hook

I've got a tool that I'd need to integrate with Drupal, so it's moduling time - oh noes :o

First thing that comes on my mind is how can I get the Drupal installation to find the content added with this new module? I know the answer: "By implementing the hook_search", but that doesn't really say anything usefull since I'm all new to this hook-system and how to do it.
I've searched thru for example CCK-module and I can't find anything related to search_hook there either, but it saves its information to custom tables in DB and search module finds that data too - no idea how.

Images not appearing in thumbnail for album

I am having issues with my acidfree module not displaying the thumbnails at all times.. I find that I have to click on the slideshow tab and then return to the view tab (sometimes multiple times) before the images return. Not only do the images not appear, but the buttons cannot be clicked on... In the slideshow tab, I get this message "If you can see this, then your browser cannot display the slideshow text."

Any ideas?

Can't get any modules to work

I just installed Drupal for the first time and I can't get any modules to work. I've loaded, set access, settings, etc. to Img_assist, Fck_editor, TinyMCE, ImgMCE and none of them, no matter what I seem to do, will show up.

I'm on an iMac with Firefox and Opera and my java is working fine. I've followed the instructions on all of the modules over and over, set and reset everything, and still no joy. I even created a new account on my Mac and signed in just to see if it was something to do with compatibility.

Pages

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