Jump to content

matjazp

Members
  • Posts

    721
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by matjazp

  1. Could this: else if ($type instanceof FieldtypeRepeater) { $items = $page->{$f->name}; if (!$items) continue; if ($items instanceof PageArray) { foreach ($page->$f as $item) $tagged = array_merge($tagged, findTaggedImages($item, $tag)); } // FieldtypeFieldsetPage returns a single page instead of a PageArray elseif ($items instanceof Page) { $tagged = array_merge($tagged, findTaggedImages($items, $tag)); } } be like this? else if ($type instanceof FieldtypeRepeater) { $items = $page->{$f->name}; if ($items instanceof Page) $items = array($items); if ($items) foreach ($page->$f as $item) $tagged = array_merge($tagged, findTaggedImages($item, $tag)); } I'm not a programmer at all and haven't tested this so I might be completely wrong
  2. I saw the change in ProcessPageEditImageSelect.module: - if($field->type instanceof FieldtypeRepeater) { + if(wireInstanceOf($field->type, 'FieldtypeRepeater')) {
  3. Shouldn't that be: } else if ($type instanceof FieldtypeRepeater || $type instanceof FieldtypeFieldsetPage) { or perhaps: } else if(wireInstanceOf($type, 'FieldtypeRepeater')) { to support FieldtypeFieldsetPage?
  4. Can you tell more about that?
  5. I would love to see that hack/hooks I admire this PW community, showing their work, coming up with great ideas and helping other.
  6. I think a lot of us would like to contribute, some way or another, depending on skils and available time. But at the end it's Ryan who must alocate time and other resources for this project and take a lead.
  7. Maybe this is related https://github.com/processwire/processwire/commit/d427b7f563f3024c1030265463ecaf79ab92d070
  8. @MacruraI tried that and css is applied to .ImageData but it doesn't help in my case... Didn't try your module ...
  9. Happening to me on PW 3.0.71
  10. I also agree, but I'm not sure such a tool would be helpful since Ryan has his own way of doing things. What we need is more or less visible by looking at open issues, pull requests and feature requests.
  11. You should resave your translations first. Or try with new translation.
  12. Try adding this: if(DIRECTORY_SEPARATOR != '/') $data['file'] = str_replace(DIRECTORY_SEPARATOR, '/', $data['file']); To /wire/modules/LanguageSupport/LanguageTranslator.php to public function saveTextdomain(), right after $data = $this->textdomains[$textdomain];
  13. @ryan Thanks for the fix! I find the active tags background color to light, not enough contrast to see which tag is active (.selectize-dropdown .active{background-color: #d7e2e6;)
  14. Is this commit https://github.com/processwire/processwire/commit/faf1efc0495704c21b373dd424ce57df45605970 related to this?
  15. @ryan I have to save the page before I can enter tags using selectize. There is also js error, as @fbg13 mentioned. It looks like some html is missing on newly uploaded image, like <div class="selectize-control InputfieldFileTagsSelect multi plugin-remove_button plugin-drag_drop">...</div>
  16. Is it just me or what - I can't add tags if page is not saved first?
  17. ... $field->entityEncodeText = false; //add this to allow html markup $field->description.= sprintf(__('Cached files: %s | Used space: %s'), $_cacheInfo['numberOfFiles'], $_cacheInfo['bytesTotal']); ...
  18. It was documented on labstack pages and AutoSmushPDF was working like a month ago, but it looks like they decided to remove support for this api. The module is not working any more :-( @adrian would you remove the module from modules directory?
  19. Related? https://github.com/processwire/processwire-issues/issues/250
  20. Are there any javascript errors on upload (check with browser's dev tools)? Any other pages or templates have working image uploads or is this behaviour specific to this page only? Image is smaller that 2M (looks it is)? Any clues in PW log files? Try chmod -R 777 /site/assets/files/1234 to see if there are permissions problems.
  21. If I remember correctly, Ryan made some modification regarding AWS, be sure to use PW 3.0.60.
  22. Wild guess: is $this->config->ajax true? Is HTTP_X_REQUESTED_WITH header set? Or is the problem with getTokenName()?
  23. Check permissions and ownership of assets folder.
  24. ProCache on IIS is not supported, as far as I know, but it should work with some additional rules. Since I don't have ProCache, I can't say for sure. As this is payed product I don't know if I'm allowed to post this rules here on forum.
×
×
  • Create New...