Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. RT @dazzy_web: If you want control over your cms instead of your cms controlling you then check out #processwire http://t.co/GodXxokLII

  2. But what? That's a perfect solution.
  3. No, but you can use JS to load a different image.
  4. http://lmgtfy.com/?q=processwire+contact+form+api
  5. Some time ago I added support to core for repeaters, but it's very vage and uncomplete and only works with = operator. So it's already there for some time. https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/InputfieldWrapper.php#L316 Thing was that it wasn't saving those fields anymore because of something else related, I can't really remember now. To enable fields with sowIf getting saved see in wire/config.php how to make it work. /** * Settings specific to InputfieldWrapper class * * Setting useDependencies to false may enable to use depencencies in some places where * they aren't currently supported, like files/images and repeaters. Note that setting it * to false only disables it server-side. The javascript dependencies work either way. * * Uncomment and paste into /site/config.php if you want to use this * * $config->InputfieldWrapper = array( * 'useDependencies' => true, * 'requiredLabel' => 'Missing required value', * ); * */
  6. RT @processwire: New blog post: ProcessWire Core Updates (2.5.14) – A Week of Multiples: Modules and User Templates/Parents – https://t.co/…

  7. Difficult without seeing code but if you define an id for the inputfields dependencies doesnt work as it requires a certain id.
  8. RT @espiekermann: I’m not much of a Facebook user, but just updated my cover image to #jesuischarlie https://t.co/91tXycr2bn (AG Bold + Blo…

  9. I gladly refer you to the docs http://processwire.com/api/multi-language-support/code-i18n/
  10. How stable is this version? I plan to try this for a recent project that's going live soon. Thanks for the work put into this!
  11. Memory? If Images are a little bigger it can require a great amount of memory real quick to create the thumb.
  12. RT @alexmercenary: a lot of love from the @processwire community today! much respect.

  13. There's no problem with inputfields just creating a from a dummy pages's inputfields , won't work cause its not a existing page.
  14. You really press hard the refesh. From how it looks there's a problem with the form.
  15. I'm not sure I can follow what you're doing but there was no change I'm aware of. For example this $templ = $templates->get("block-page"); $form = $modules->InputfieldForm; $p = new Page(); $p->template = $templ; foreach($p->getInputfields() as $f) $form->add($f); $content .= $form->render(); ... creates an error ever since in earlier pw2.4 up until latest dev. This for example doesn't give an error for all PW versions: $templ = $templates->get("block-page"); $form = $modules->InputfieldForm; $p = new Page(); $p->template = $templ; foreach($p->fields as $f){ $form->add($f->getInputfield($p)); } $content .= $form->render(); Well not sure I can give a better way since you "just" have to build a form with inputfields and create a page later if there's files (in theory). Well if there's file uploads it makes it a lot harder to figure it all out cause you can't use backend ajax upload etc. but the inputfield file is designed for backend.
  16. What is the code you're using here? This was always like this, you first have to create and save a page before you can add files to it. I get that error in all PW versions. I think it also depends a lot how you setup things with the form creation and inputfields, for example $page->getInputfields() PW will try to create get inputfields in context of a page and if there's file fields it requires a saved page with an ID.
  17. Happy new year eveone!
  18. Alternate language fields work just fine for files and images.
  19. A better way? There's no other way than search for them, but to scale you'd maybe use a limit. Also maybe make that optional. Well if you have 50 tags and 1000 pages you'll end up 50'000 pages or even more (since pages can have multiple tags) and it will make 50 finds! It may work but take some time and memory.
  20. @z Thanks for getting back and glad you found the issue. I think you'll run into many problem with 32mb real quick so I don't think setting memory limit in modules is a good way as it belong to server configuration. ----------- Note about an update to 2.1.6 - Fixed issue with an unexpected "\n" char in a summary of a newly added module that caused and error with jQueryDataTables parsing the json. So I'm sure many will run into this issue once they hit refresh and haven't updated to 2.1.6 yet. But see and make an update of ModulesManager you'd need to hit refresh. - So not sure how this will play out. Damn "\n"! In case just manually update or use the core module manager.
  21. What if I have thousands of pages and more? I think it could give you some problems with performance real quick // get pages as PageArray $tags = $this->pages->find($tagsSelector); // register back references / "tagged" pages and count foreach ($tags as $tag) { $tagged = $this->pages->find("{$tagField}={$tag},{$backRefSelector}"); // pages tagged / referenced to this tag $tag->set('use', $tagged); $tag->set('useCount', $tagged->count()); } All pages are searched for each tag and even cached/stored. At least use a count instead of find $this->pages->count("{$tagField}={$tag},{$backRefSelector}");
  22. RT @henningheyne: How to create a translation file (json) in #processwire on Vimeo http://t.co/kPRabsQkqJ

×
×
  • Create New...