• Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By chuckymendoza
      Hello together,
      I have a problem with the image field and in my case it seems that there is a limit of how much images can be in such field.
      The following case:
      I have around 20 pages. Each has a usual image field, where I can upload an unlimited number of images (array).
      Most of the pages got 50-200 images but one page got 411 images (I know, it’s much  )

      Now, when I change the order of one image (let’s say I drag & Drop the first image after the third) or delete one image by clicking on the trashcan, everything runs fine. BUT when I click SAVE the image won’t be deleted or moved to it’s new place. You can change anything else on the page - I have a text field there - and save it, no problem.
      Interestingly I can add (upload) new images but I’m not able to delete or move them.
      - The file size of the images are between 200kb and 1.7MB, RGB, JPGs.
      - When I duplicate the page and try to delete/move I got the same problem.
      - I also created a whole new page and got the same problem
      - Also tried a different server (virtual and online): same problem
      - ProcessWire 3.0.62
      So, is there a limited to the images field? Any clues except limiting the image files to max. +-200 images?
       
      Thanks so much in advance and have a great weekend.
      Thomas
    • By Robin S
      In response to a wishlist request...
      Field Save + Add New
      Adds a "Save + Add New" button when editing a field.

      Usage
      Install the Field Save + Add New module.
      When editing a field, click "Save + Add New" if you want to save the current field and start the process of adding a new field.
      Note: The button will not redirect you to "Add New" if you are performing some special action such as duplicating a field or adding a field to a template.
       
      https://github.com/Toutouwai/FieldSaveAdd/
    • By mike62
      I am new to PW, and am trying to get an image to display, from a field in my template. Here's the code I'm using:
      <?php $image = $page->home_header_image; echo "<img src='{$image->url}' alt='{$image->description}' />"; ?> I'm following the tutorial on this here.
      When I save the template and reload the page, the path to the image is incomplete. If just echoes:
      <img src="/site/assets/files/1/" alt=""> It omits the name of the image, at the end of the path.
      Here's the site I'm working on:
      http://dev.delucaswpg.webfactional.com
      A couple caveats:
      I'm using ProcessWire 2.3.0 (tried updating the site and everything went berserk because of some plugin dependencies; point being: I can't update to the latest PW). I tried using the ->size thing and it gave me an error, saying it couldn't use 'size' in this context. Which I also thought was weird. Any ideas? Thanks!
    • By szabesz
      Hi,
      I moved a site to a new home and ran into a "strange" issue:

      No field is added. I have no error message "anywhere", not in the console, no PHP, not in server logs either.
      The strange thing is that I can Duplicate fields: Setup > Fields > Actions > Duplicate/clone this field?
      Meaning it is just the "Add New Field" which does nothing. I can also create pages.
      Also,  "Add New Field" does work in local development environment (same site and "same state", of course), it is just the new server environment which is problematic.
      Any ideas for troubleshooting? Thanks in advance
    • By rst
      Hello,
      I have repeater field with an image field as one of its fields. It works correctly on all but one templates. I added an image, it shows the image uploading, but then the image just disappears and it doesn't save. What could it be ?
       
      Thanks