Jump to content

Gideon So

Members
  • Posts

    470
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Gideon So

  1. 11 hours ago, adrian said:

    @flod and @Gideon So - I just committed a new version which automatically adds the Repeaters parent to the list of branch exclusions. I would appreciate it if you could please check if this takes care of image uploads in repeaters without having to manually add it in the config settings.

    Thanks!

    Hi Adrian,

    Confirmed this version fixed the problem.

    Gideon

    • Like 3
  2. On 2017/1/11 at 8:51 PM, flod said:

    I recognized the following problem:

    If I set Admin Restrict Branch to restrict access to page XXX users with permission are not able to upload images. The upload process starts with no image in the end. If it is not set to page XXX everything works fine.

    Settings:

     Zwischenablage-1.jpg

    Thanks for your support!

    I have the same problem with repeater also. The solution is exclude the repeater page under admin in the module settings.

    Gideon

     

    • Like 1
  3. On 7/10/2016 at 0:34 PM, BitPoet said:

    Is imagefield set to return a single image? This looks like you're accessing the data from a Pagefiles object. In that, case, this should work:

    
    echo  $site->pages->get(pageid)->imagefield->first()->httpUrl;

     

    Hi Bitpoet,

    Eventually you are right. In multi-instance environment, you need to call the first object even the limit of the image filed is set to 1.

    Maybe this is a bug in multi-instance support.

     

    Gideon

     

    • Like 1
  4. Hi,

    I tried multi-instance and found that I cannot load image from other installation with $image->httpUrl.

    <?php $site = new ProcessWire('/path/to/the/site/','url.of.the.site');  echo  $site->pages->get(pageid)->imagefield->httpUrl; ?>

    This return nothing.

    <?php $site = new ProcessWire('/path/to/the/site/','url.of.the.site');  echo  $site->pages->get(pageid)->imagefield->url; ?>

    This only return the page path like site/assets/files/pageid/

    I am using PW 3.0.33

    Any ideas??

    Gideon

×
×
  • Create New...