Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. @horst, I just stumbled over this and thought of this thread I see that it may not the real issue here. Are you saying you get this problem with ImagesManager? I just committed suizi.. er an update to ImagesManager to account for various issues I encountered with new PW. Also there was a fileAdded triggered two times before that was due to some strange things with getting to work max image dimension to work, since it's something that only the InputfieldImage is dealing with.
  2. I was able to reproduce issues with latest dev 2.4.2, while working in 2.4.1 still. Took me couple hours to get around the problems introduced here, but somehow found what the issue was and committed a fix just now. Part of it is still hackish, and it seems I can't set a custom upload path for InputfieldImage anymore. So it will take now the admin page assets folder for uploading. This results in you don't have to set a temp upload folder (took it out for now). Also made sure images uploaded get deleted in case of errors. Added check tomake sure parent catgegory page is selected before uploading. Added support for showIf dependencies, so the file input will only be shown when a parent is selected, this will only work for 2.3+ (?). Some minor changes in ImagesManagerParser to account for upcoming new fieldtypes by Ryan. Meanwhile I found some bug in InputfieldPageListSelectMultiple that makes it not work with inputfield dependencies, I submitted a PR for Ryan. I got it still working with a trick. So unless there's other changes to image/file inputfields this version should be save for 2.4 and upcomming 2.5. But after all still a proof of concept!
  3. InputfieldImage does this: L#68 if($this->maxWidth && $pagefile->width > $this->maxWidth) { $pagefile2 = $pagefile->width($this->maxWidth); unlink($pagefile->filename); rename($pagefile2->filename, $pagefile->filename); $pagefile->getImageInfo(true); // force it to reload it's dimensions } if($this->maxHeight && $pagefile->height > $this->maxHeight) { $pagefile2 = $pagefile->height($this->maxHeight); unlink($pagefile->filename); rename($pagefile2->filename, $pagefile->filename); $pagefile->getImageInfo(true); } That's two resizes for me. While questioning if it shouldn't do only 1 resize.
  4. can you enable debug mode and see what errors you got?
  5. Thanks Tom! Glad you seem to enjoy it!
  6. @adrian That option isn't used. I used to use this to set it, but removed it. @cstevensjr hmm I'll also test a little to see if i can reproduce.
  7. @digitex, ImagesManager doesn't set a maxFilesize, where do you see this? It uses PW InputfieldFile.module that does set it from the php.ini. I'm not sure in what regard it is different to when uploading on a page, because it should be the same. Though the upload form in ImagesManager is a normal form file input that uploads on submit, while page upload you may using ajax async upload. Anyway it shouldn't make a difference. Thanks for the suggestion with the missing category parent. Yes, that surely would be possible. While it all works somehow, there's a lot left to be desired. It's still an proof of concept pretty much. @cstevenjr, are getting this on a new install? I haven't tried yet on latest PW though. Strange.
  8. Thanks for the report. I fixed the issue with custom CSS and committed it just now.
  9. There's two arguments to give renderCart() If you only have one fixed shipping cost you could give it as the second argument, the first being true or false, viewonly or not editable cart. https://github.com/apeisa/Shop-for-ProcessWire/blob/master/ShoppingCart.module#L193 echo $modules->ShoppingCart->renderCart(false, $modules->ShippingFixedCost); The module isn't autoload, but loaded on demand.
  10. Really? I don't think so. I think it's more meant that your video is better positioned if you use youtube to host them and embed in your site. Not that your site get's a better rank just by embedding youtube videos.
  11. Never have this problem. Make sure your template file and code is utf8. Also it depends how you send the email if you don't set a correct header it may cause troubles with chars. Then usually a utf8_decode isn't needed.
  12. Don't think this marked solution is the solution? It's very simple. First it's always nice to know what multi-language approach you use since there's multiple ways. If you use the LanguageSupport modules with LanguageSupportPageNames also installed (which I guess you use), you'd set the language segments on the home/root page. There you'll find a name for each language. Let's assume you have german default and english alternative language, you'd probably set the name to german: "de" english: "en" This will result in urls like /de/meineseite/ and /en/mypage/ Default name could also left empty, so there won't be any language segment for it and only be /meineseite/. So, but you name them "startseite" and "home" which is strange as this would result in /startseite/meineseite/ and /home/mypage/, which is not desirable I think. So taking the language segments as described before a language switch using $page->localUrl(language) will return the correct url to the language. On the homepage this would result in domain.com (always default language, unless you set option to redirect to /de/ in LanguageSupportPageNames module) domain.com/de/ domain.com/en/ The language is always evaluated from the requested URL, and $page->url will always return urls of a page according the current language. You can get a localized url of a page explicit with $page->localUrl(language).
  13. RT @minimizepw: We're working hard on our next version. Want to take a sneak preview? #processwire http://t.co/Eq5xVmzB4K

  14. Just guessing that those urls you request don't exist in PW, so you'll get a 404. Solution could be to have url segments enabled for root template. So a url like domain.com/phones if a page /phones/ doesn't exist it won't throw an 404, but just route the request to the home template.
  15. I don't think that's possible. You can ignore those notices. You will also get some from ProcessWire core btw.
  16. @statestreet, I'm not sure but it does work fine. It's hard to tell from here. All I can say that it's not trying to match the title but the page name. Also it does have issues with that it uses strpos to find matches. Possible sideeffect would be that domain with subdomains wouldn't work I think. domain.com my.domain.com would get conflict with checking for the right current domain. I think this can be fixed with having a 1:1 match checking. But not sure it's what you experience. Although after all it's a big hack to get this multisite tree's working so it's always possible things go wrong. I still consider this a beta and while it's working I strongly recommend to only use it if you are completely aware of what it is doing. It may not suit all situations. @apeisa, I'm not keen to take the lead on this one. I got too many modules to support already. But I'm happy to help with getting it working or fixing something.
  17. Save is outside foreach? This on saves the last page.
  18. Ok, first take off your mask and try some harder. Collapsed sound more like well collapsed , not?
  19. Add a template redirect, add page select and in template file redirect to the selected page.
  20. Works fine without saving for page select.
  21. Define links go crazy.
×
×
  • Create New...