Content type import doesn't work and other installation issues

grendelshitsuren - March 10, 2008 - 14:55
Project:Flickr Gallery
Version:5.x-1.0-beta
Component:Code
Category:bug report
Priority:normal
Assigned:wonder95
Status:active
Description

I tried to import the data in the included cck_photo_field.txt, but that didn't work. There's already a content type called "image" and even if I changed it's name, the import still didn't work as the title is identical... am I missing something here? Should the image module be deinstalled?

#1

Nigeria - April 17, 2008 - 11:11

I got this to work by changing the names from Image to PhotoImage (You can change it to whatever you want...it says so in the read me).

See below

$content[type] = array (
'name' => 'Image',
'type' => 'image',
'description' => 'Image to be displayed',
'title_label' => 'Title',
'body_label' => 'Description',
'min_word_count' => '0',
'help' => 'Size must be less than 1.5 MB',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'old_type' => 'image',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
);

to

$content[type] = array (
'name' => 'PhotoImage',
'type' => 'photoimage',
'description' => 'Image to be displayed',
'title_label' => 'Title',
'body_label' => 'Description',
'min_word_count' => '0',
'help' => 'Size must be less than 1.5 MB',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'old_type' => 'image',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
);

Further instructions

  1. You will also need to override the photos_tags and photos_user views to reflect your new type instead of the default "image" type
  2. You will also need to change the default type from 'image' to whatever you have called it flickr_gallery.module, since 'image' is hard coded there
  3. The flicker gallery was not created so I created it manually and attached it to the type that I replaced 'image' with
  4. You can user the url http://www.example.com/flickr_gallery as a starting point into your gallery

-- Ade Atobatele

AttachmentSize
flick_gallery.zip 3.22 KB

#2

Nigeria - April 17, 2008 - 11:22
Title:content type import doesn't work» Content type import doesn't work and other installation issues

#3

wonder95 - April 21, 2008 - 03:02

I actually have a patch for the problem with the inital taxonomy gallery not being created here. I just want someone to review it before I commit it.

#4

wonder95 - January 22, 2009 - 04:55
Assigned to:Anonymous» wonder95

I just put out a BETA2 release to fix some of the basic issues, such as the taxonomy vocabulary not being created. I was thinking about allowing the user to specify the content type used on the admin page somehow. I'll look at doing that.

 
 

Drupal is a registered trademark of Dries Buytaert.