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

How to tell if a node exists?

Is there a function to determine if a node exists? I could use node_load, but I'm not sure what it returns if a node has been deleted, and I don't actually need to load the node in this case, only to make sure it hasn't been deleted.

As a side note, is there a way to easily determine another node's type without loading it?

Thanks,
Aaron

Culture Fix Web Identity & Design
Digital Folk Art (my blog)

upload to free image hosting

request for a module that allow us upload images to free image hosting.
for example, like imageshack.us, etc...

this way, users' upload images will not take any space on our server.

rgds,
rex

image.module (4.6) can't add picture to gallery.

Hello.

There is no way to add picture to gallery.

And the gallery doesn't show up on the menu.

(I can create image taxinom/category, but thats another thing)

call to node_add from module?

I'm trying to find a way to add an image node within the creation of another type of node. I think the following code will (sort of) work, but I don't think it's the right approach. (Unfortunately, I also need the nid returned, so this won't really work.)

	$output = '';
	$type = 'image';
	if (in_array($type, node_list()) && node_access('create', $type))
	{
		$output .= node_add($type);
		print theme('page', $output);
	}

Is there a better way to do this?

Thanks,
Aaron

Mozdex.com search module

Howdy!

I'm looking for anyone interested in building a mozdex.com search module that incorporates the OpenSearch RSS feed to allow search blocks and results within drupal.

If anyone is interested in what should be a straightforward module, we will feature you on our home page for a month.

http://www.mozdex.com

You can follow our developer link to get instructions on the feed as well as lookup OpenSearch to find out more on OpenSearch 1.0 spec/rss feeds.

Creating a Prototype for a Property Listing Manager module

I am writing a module that will create a node that includes a mini-gallery of images. Its primary intended use will be for displaying "Featured Properties" for real estate sites. If there's interest, once I've gotten it working, I'll post it here for other developers.

I originally had planned to use a flexinode, but it just wasn't doing what I wanted. Most of the functionality (as it stands now) comes from the Image module, although I have some questions (later in the post) about how to integrate with that module.

An authorized user ("agent") will be able to create nodes of this type. They will add the specific details of the property (address, town, type of property -- duplex, two-story, etc. -- features -- garage, basement, etc.). After these are entered, they will be able to upload one or more images associated with the property.

Ideally, I would like to have an "upload" button on the form (which flexinode gives). However, after one image has been uploaded, I would like to allow an indeterminate number of images to be added as well. I could set an arbitrary limit, such as 4 or 8, and set up the appropriate fields, but that seems like a kludge.

In addition, I want to be able to have more control about how to display the node. For instance, to show one image at its "preview" size, with the others at "thumbnail" size.

I've been studying the Image module for inspiration, and have set up a database table that will hold an unlimited number of associated image nodes with a property. One of these can also be designated as the "primary image" (the first being the default).

Pages

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