Hi all!
I need to create a product catalog (apartments) to the following types: above the product name, right price, below the description and location on the map. Below that something like the photo galleries of the product.
That drew a sketch in Photoshop:
http://picasaweb.google.com/007.programmer/Herrera#5375446282308376434
I tried using Views and CCK, but not yet obtained.
Maybe someone has other ideas? I would be grateful for any help.

Comments

SamuelFreeman’s picture

I have created something quite similar to what you want using CCK + ImageCache (with its required modules) + Contemplate + Gmap + Location Full instructions on how to set this up might go on for a few hours.

However you can use CCK to create your fields, ImageCache to create the thumbnails and main image sizes (crop and or scale or both) Gmap & Location module for your Google Map and then use Contemplate to lay out the page as you wish. To use the Gmap in contemplate you will need to use the following code as it doesn't hook into contemplate.

<?php
		if ( ($location['latitude'] != 0) && ($location['longitude'] != 0) && ($teaser != 1) )
		    {
		        $homes=array('id' => 'outfittermap',
		            'zoom' => 15,
		            'behavior' => 'autozoom',
		            'width' => '370px',
		            'height' => '300px',
		            'maptype' => 'Hybrid',
		            'latitude' => $location['latitude'],
		            'longitude'=> $location['longitude'],
		            'markers' =>
		            array( array('markername' => 'blue',
		            'latitude' => $location['latitude'],
		            'longitude' => $location['longitude']
		            ))
			        );
			    $outfittermap = theme('gmap', array('#settings' => $homes));
				print ('<h2>Location Map:</h2>');
				print $outfittermap;
			}
	?>

If you need more help on specifics just ask :)

Sam

serega_od’s picture

Thanks, I'll try!

serega_od’s picture

How to attach multiple images to a product I know. But how to do so that they can be viewed like a gallery?

And for the placement of content maybe use module panels (http://drupal.org/project/panels)?
Someone tried it?

Thanks in advance!

SamuelFreeman’s picture

You could certainly use panels rather than coding it yourself in the Contemplate module, however you would then need to grab the CCK content using Views then Add it to the Panel page that way.

As with making it look like a gallery why not use the lightbox or thickbox modules to make a nice image popup and some CSS to do to the rest?

serega_od’s picture

Hi all, again! :)
I almost done my work. I use CCK, View, view_attach, imagecache, nodereference and lightbox2. (like view_gallery)
see result can at url: http://apartment.hmsite.net/appartments
But I can't configure gmap and location module.
Access to admin: admin admin.
HELP please!!!!