Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nic
    @muskie9
    is there a way to specify mapping for a dev and prod environment depending on the environment type (dev,test,live)
    Mark Guinn
    @markguinn
    The mappings are entirely dependent on the config system which, fortunately, has several ways to do what you're describing. Check out the example configuration for Jeremy's Silverstripe Omnipay module for an example - https://github.com/burnbright/silverstripe-omnipay#configuration - or you could alternatively have a separate mysite/_config/local.yml file that's outside of version control and only present on your local (or dev or production).
    Nic
    @muskie9
    awesome! thanks @markguinn for the example, hoping to work this in to multiple projects
    Mark Guinn
    @markguinn
    That's great. Don't hesitate to get in touch if there's anything else I can do.
    Nic
    @muskie9
    @markguinn have you come across issues where images in the HTMLEditorField aren’t wrapped in an anchor tag when rendered in the page… we have an image that we want to link to an external website and when the code is rendered on the page it places the image outside of the paragraph it was put in, and the anchor tag that was shown as wrapping the image is now wrapping nothing within the paragraph tag...
    this could be an HTMLEditorField or TinyMCE issue, but thought I would check
    we’re using your cloudassets-rackspace module on top of the base module
    Mark Guinn
    @markguinn
    No, I'm afraid I've never seen that happen. So it gives a valid IMG tag, but doesn't wrap it with a link to the original image? What version of SS are you using? It's highly possible there's some difference in the Image class vs the CloudImage class.
    Dan
    @danrye
    @markguinn is it expected behavior that images would be treated as "from the web" and therefore be processed by the oembed photo handler?
    Mark Guinn
    @markguinn
    No, I've never seen that happen
    Are you using 3.1 or 3.2?
    Dan
    @danrye
    3.1.13
    Mark Guinn
    @markguinn
    With rackspace? Or S3?
    Dan
    @danrye
    S3
    Mark Guinn
    @markguinn
    It's showing up as an embed in your template?
    Dan
    @danrye
    [embed width="300" height="267" class="leftAlone" thumbnail="https://s3.amazonaws.com/crds-cms-uploads/Screen-Shot-2015-05-04-at-4.07.42-PM.png?r"]https://s3.amazonaws.com/crds-cms-uploads/Screen-Shot-2015-05-04-at-4.07.42-PM.png[/embed]
    instead of just an img tag
    when it gets rendered out it becomes an image tag, because oembed shortcode handles it
    Mark Guinn
    @markguinn
    let me check and see if the same thing is happening on one of our sites and i jsut never noticed.
    Mark Guinn
    @markguinn
    it does look like it's seeing the image as external but I'm getting an <img> tag instead of an embed.
    Dan
    @danrye
    in the tinymce editor it shows img tag
    Mark Guinn
    @markguinn
    i'm not sure if that's just a slightly different SS version (i think we're maybe a few patch releases behind 3.1.13) or because i'm using the rackspace driver instead of s3
    Dan
    @danrye
    but if you look in the DB it'll have the embed (I'm betting)
    Mark Guinn
    @markguinn
    I don't see it in the database either, actually. I belive you though. :)
    Dan
    @danrye
    while this solves my problem for now, I wish I knew why it was working this way
    Brian Irwin
    @luminousmg
    Hello, I am trying to use cloudassets with the latest release of SS 3.2. I am connecting through the s3 bucket driver and am getting the following error when I try to upload an image through the file manager:
    Object->__call(): the method 'parent' does not exist on 'Image'
    Mark Guinn
    @markguinn
    I haven't tested this model much with 3.2. It's pretty tightly coupled with the internals of the File and Image classes so I'm not too surprised if some things break.
    Nic
    @muskie9
    @luminousmg I'm experiencing the same issue. @markguinn is it safe to assume the issue is in the cloud assets module and not the modules for the containers (s3, rackspace, etc)? I'd take a look and see if I can track down the issue.
    Mark Guinn
    @markguinn
    I think you're probably right. CloudImage gets pretty hacky with the internals of the image object, so I'm guessing those changed enough that CloudImage no longer works.
    Nic
    @muskie9
    I know there were some changes to the image formatting function names and default behavior for overwriting existing files
    Hans Philip Eide
    @hpeide
    hi! I get an warning in the Upload filed with the Rackspace module: Object->__call(): the method 'parent' does not exist on 'Image'. The image gets saved on the server, so with overwrite existing config set a second upload works fine.
    Hans Philip Eide
    @hpeide
    after som digging I found that it breaks after CloudFileExtension::updateCloudStatus line 126. Looks like Silverstripe don't like that the classname is changed... tried various as setClassName and newClassInstance with no luck.
    Mark Guinn
    @markguinn
    @hpeide which version of SS are you using?
    Hans Philip Eide
    @hpeide
    SS 3.3.1 and experiencing the same with 3.2.x
    Mark Guinn
    @markguinn
    A workaround might be to use the Injector to replace File with CloudFile and Image with CloudImage out of the box.
    When I originally built the module I didn't understand the Injector very well.
    Just make sure you explicitly map Folder to itself as well.