Jump to content

vknt

Members
  • Posts

    72
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by vknt

  1. Thankyou Ryan. I'll try it out. Good to see that posting about my little annoyances can help make PW even better.
  2. Thankyou Ryan. Updating to the latest version got me back. As for the order of the languages, changing the order in /setup/languages does change the order of the multifields. and when going to setup/languages/ it's also stil in the order they have been created. To change to order I have to delete both languages and create them in the correct order. When I have to switch languages when there's already content filled in, this might be a problem. But I realize this is an uncommon problem. Good to know that it works like this..
  3. And another question: tried to delete the 2 languages that I added, and now I'm completely locked out of the CMS with this error code: Recoverable Fatal Error Argument 1 passed to LanguagesPageFieldValue::__construct() must be an array, string given, called in /home/brightpark/public_html/wire/modules/LanguageSupport/LanguageSupportFields.module on line 296 and defined (line 33 of /home/brightpark/public_html/wire/modules/LanguageSupport/LanguagesPageFieldValue.php) This error message was shown because you are logged in as a Superuser. Error has been logged. Any way that I can fix this? Does this mean, I can delete or add languages on the fly? PS I have a database backup..
  4. I'm in the progress of creating a mulilingual site. Done this before, no problem. I've created 3 languages, however the order in which they have to be shown is incorrect. It should be Dutch, French and English instead of Dutch, English and French. Is there a way to change this order of apperance? Thanks in advance.
  5. Hi Ryan, to be more exact: - The Page field was linking to page that didn't exist anymore (set as parent for selection) - The template of that page didn't exist anymore - The field allowed to create a page from within the field, with a template that didn't exist anymore. So I guessing he was giving the error based on one of those 3?
  6. Hi ryan, I don't use any third-party modules, and I've tried to change the template name back, problem remained. But when you said the old template must be somewhere I searched for other template references and found the problem: it was a Page field that was linking to a template that I had removed, so it had nothing to do with the renaming of the template although I thought it was connected to that change. So thanks a lot! Problem solved!
  7. Thanks Diogo, I've looked into those posts before I started this topic, but I don't really understand what the're saying and it seem to be a subproblem of another problem for those topics. But thanks for trying to help out! V
  8. Hi all, I'm getting this weird error after changing the name of a template. Invalid value sent to Page::setTemplate The template is connected to 10 pages, as you can see in the attachment. But after name change, it stopped working. I don't have a db backup, because I was doing pretty normal stuff, so I hope someone can help fix this. Thx in advance. Valentijn
  9. Thanks SiNNuT, I worked together with a friend who does 3D. It would be hard to create this level of detail in Illustrator I think.
  10. Hi Soma, thanks No the rescaling option is bitmapbased, personally I always use 2 document because mostly I tweak a little bit ont the buttons for retina. I use the resizing options for non-ui assets. If you have any other questions, let us know! PS Thanks for the youtube tip, will change that.
  11. Nice catch Arjen, I'll look into it!
  12. Hello everyone, this is our latest creation built with Processwire. It's a site for a Photoshopplugin I build to save slices like a boss Let us know what you think! http://photoshopmonkeys.com Team Valentijn Kint (vknt) Thijs Bernolet (recyclerobot)
  13. Looks cool, I'll give it a shot 2night.
  14. Thanks Soma, that was a solution what I was hoping for. For me it was not a dealbreaker that they are not the same height, because I can add or remove all descriptions of the same row. But for emails and urls I didn't have a choice. Agree! +1 Thankyou all for the replies.
  15. First world problem I know, but it's annoying me that some fieldtype stick out. See below. If I try to put a spacebar in the field, it's height is still not the same as the others. Thx in advance for any suggestions to solve this.
  16. Ok, that makes sense. Thanks for the clarification Ryan!
  17. I have a template set with family option: Can this be used for new pages: No. However I'm able to create pages with that template through a field of type Page with the checkbox "Allow new pages to be created from field?" checked' I think this field should also honor this family option setting. Or am I missing something?
  18. I use Asana daily and I really like it so far. You definitely give it a try, it's free anyhow so no risk there
  19. Hi, I just noticed that if you put float values in an integer field it will completely ignore the decimal point. e.g. I put in 244.5 > it will save 2445 Most of the times the enduser doesn't realize it should be an integer and just copy pastes values in there. Am I seeing this the wrong way or should the integer field automatically round off the values before it saves?
  20. +1 for Next and Previous sibling buttons!
  21. Hi thanks for the responses. I tried the exec approach, but that didn't really work for me so I ended up using the ZipArchive class. http://www.php.net/m....ziparchive.php This is the basic approach of my code. <?php // ************************************************ // Zip files // ************************************************ $zip_filename = "assets.zip"; $zip_path = $config->paths->root."site/assets/files/".$page->id."/".$zip_filename; $zip_url = $config->urls->root."site/assets/files/".$page->id."/".$zip_filename; $zip = new ZipArchive; $res = $zip->open($zip_path, ZipArchive::CREATE); $log_errors = ""; if ($res === TRUE) { foreach ($pages->get("/slides/")->children() as $slide) { if ($slide->screen_image_nl->filename) { // add image - size iPad $slide_nl = $slide->screen_image_nl->size(1024,768)->filename; $zip->addFile($slide_nl, basename($slide_nl)); // add image - thumbnail $slide_thumb_nl = $slide->screen_image_nl->size(128,96)->filename; $zip->addFile($slide_thumb_nl, basename($slide_thumb_nl)); } else { $log_errors .= "slide (id:".$slide->id.") - ".$slide->title." <strong>does not exist!</strong><br/>"; } } $zip->close(); $zip_html = "<a href='$zip_url'>Download $zip_filename</a>"; } else { $zip_html = 'Oops something went wrong. I cannot give you the .zip file.'; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Download assets</title> </style> </head> <body> <h4>Download</h4> <p><?php echo $zip_html; ?></p> <h5>ERRORS:</h5> <p><?php echo $log_errors == "" ? "No errors" : $log_errors; ?></p> </body> </html>
  22. Hey everyone, Processwire is such f** great tool to structure content that I use it in every possible situation. So now I'm using it to generate a datamodel for an iPad application (probably a 1000+ line datamodel) It's a kind of keynote like application. So I setup a tree with all al the slides (images) I need and various other pages to define variables for those slides. To generate the text datamodel, I just use php. No problem, but I'm stuck with the assets: What I want to be able to do is generate various sizes of the slides and then package those as a zip and force download that to the browser. Any guides on how to accomplish this? Thanks in advance! Valentijn
  23. I've been suggesting to have a better click through functionality a while ago (http://processwire.c...-functionality/) Now seems a proper time to bring this up again, so my suggestion is to have a direct link to the default properties of a fieldtype in the modal window of the context-based settings.
×
×
  • Create New...