Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Installing DataObjectManager


Go to End
Reply


10 Posts   4491 Views

Avatar
Junglefish

Community Member, 109 Posts

14 May 2009 at 10:15pm

SilverStripe newby. Please be patient.

I'm setting up a SS site just for evaluation purposes at the moment. I wanted to see how the DataObjectManager would integrate but I can't even seem to get it off the ground.

I have an out-of-the-box 2.3.1 installation.
I've been installing DataObjectManager according to this tutorial: http://doc.silverstripe.com/doku.php?id=modules:dataobjectmanager
I get as far as running /dev/build...

And then what? I open up the CMS and there's no change.

I imagine I'm looking to have created a new pagetype presumeably called 'Testimonials', according to the tutorial? Or did I mis-understand?

I've been trawling the forums for some basic "here's how you integrate any module" help, but can't really find anything that gets me any further.

Can you advise?

Avatar
SalvaStripe

Community Member, 89 Posts

14 May 2009 at 10:30pm

there is an small error in this tutorial..
look at the comments at the end of the page.

after installing dataobjectmanager + image gallerie, you should have pagetype for image gallerie, where you have new nice tabs to upload photos etc..

when you installed correctly the Testimonials, then you should have new pagetype to create in CMS, there you can manage files for this page in the Tab.

THEN, you maybe could extend the Testimonials, so that this function will be on Every page.

Avatar
Junglefish

Community Member, 109 Posts

15 May 2009 at 12:49am

Hi SalvaStripe

Sorry, I still don't get it.

I've installed DataObjectManager successsfully (as far as I can see anyway), and I've installed the swfupload module. I don't see anything in the tutorial about installing 'image gallerie'. Is there another module I need?

JF

Avatar
Junglefish

Community Member, 109 Posts

15 May 2009 at 12:52am

Just one thought; is it important what the directory name is?

When I unzipped the dataobject_manager .zip file, it gave me a folder called "modules-dataobject_manager-r148", so I retained that name. I then also tried renaming the folder "dataobject_manager" but it made no difference.

Is any of this important?

JF

Avatar
SalvaStripe

Community Member, 89 Posts

15 May 2009 at 1:16am

if you dont have installed this module, you should install it, its great!
(this module is not needed that dataobjectmanager runs!)

http://silverstripe.org/imagegallery-module/

foldernames of the modules in root directory MUST be:
dataobject_manager
swfupload
image_gallery

YES, it is important!

Avatar
Junglefish

Community Member, 109 Posts

15 May 2009 at 2:35am

Hi again

Okay, I'm getting somewhere. :-)

I now have all those modules installed and I have a page-type of "Image Gallery" that I can use. (It's not quite what I was after, but I'll work with it for a bit and see if I can get it to do what I want.)

However, on the photos tab, if I try to add an image to a gallery, I get this error:

[Warning] file_get_contents(D:/wamp/www/SilverStripe/swfupload/javascript/swfupload_vars.js) [function.file-get-contents]: failed to open stream: No such file or directory
GET /SilverStripe/admin/EditForm/field/GalleryItems/upload?album=3
Line 444 in D:\wamp\www\SilverStripe\sapphire\core\Requirements.php

Any ideas what's missing?

JF

Avatar
UncleCheese

Forum Moderator, 4096 Posts

15 May 2009 at 4:34am

Looks like you might have some misunderstandings about the DataObjectManager. It does not give you a new page type to create. It's will allow you to use a new form field called DataObjectManager in your Page classes. I'm not sure what you mean about the testimonials page. I had included that as an example, but it is by no means a core part of the module -- just something there for your reference.

Also, when installing dataobject_manager or swfupload, there is a text file in that tells you to drop the adjacent folder into your Silverstripe root. You shouldn't be using the top level folder because Silverstripe adds those "-r123" suffixes to the file.

Can you confirm that the file swfupload_vars.js is where it's supposed to be?

Avatar
SalvaStripe

Community Member, 89 Posts

15 May 2009 at 8:08pm

@Junglefish:
i had the same error.. but i dont know what i have done. are you sure, you remove the .txt from ALL files in the swfupload folder?

Go to Top