Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Installing DataObjectManager

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 4323 Views
  • Junglefish
    Avatar
    Community Member
    104 Posts

    Installing DataObjectManager Link to this post

    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?

  • SalvaStripe
    Avatar
    Community Member
    89 Posts

    Re: Installing DataObjectManager Link to this post

    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.

  • Junglefish
    Avatar
    Community Member
    104 Posts

    Re: Installing DataObjectManager Link to this post

    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

  • Junglefish
    Avatar
    Community Member
    104 Posts

    Re: Installing DataObjectManager Link to this post

    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

  • SalvaStripe
    Avatar
    Community Member
    89 Posts

    Re: Installing DataObjectManager Link to this post

    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!

  • Junglefish
    Avatar
    Community Member
    104 Posts

    Re: Installing DataObjectManager Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Installing DataObjectManager Link to this post

    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?

  • SalvaStripe
    Avatar
    Community Member
    89 Posts

    Re: Installing DataObjectManager Link to this post

    @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?

    4323 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.