Jump to content

Alessio Dal Bianco

Members
  • Posts

    94
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Alessio Dal Bianco

  1. Hi all, here it is the site we made for an european project with processwire! http://smartenergyproject.eu The project will continue for 2 years, and maybe will have 3 languages (EN, ITA, DEU), many editors, and maybe a linkedin integration so is a good start point to test all features of processwire! Alessio
  2. Salve ragazzi scusate per l'assenza, ho avuto un sacco di rogne questo periodo. Ho cominciato fare qualcosa ieri sera copiando il tema di Nico Koll e cambiato un po' di slogan. È ancora quasi tutto statico ma conto questa settimana di renderlo tutto dinamico e italiano Mi servirebbe seriamente qualche input se gli slogan principali possono andare bene o meno. Il sito temporaneo lo trovate qui: http://alessiodalbianco.me/it_processwire_com/ Alessio
  3. Really Really cool! Especially when he selected the button and all the gradients filled up automatically!
  4. I'm costrained to do this because the function "$field->getInputField($curriculum)" necessary takes an instance of Page to retrive the Inputfield associated.
  5. But i don't want to create it before the submission. Because if i do this every visit of that form a new page must be created. Is there a way to avoid this : // We must have the Inputfield instance, not the Field. $form->append($field->getInputField($curriculum)); I think if i create the form with the Inputfields from the instance of $curriculum, PW related this form to the object page (not yet saved), and of course throws that error when submitting.
  6. Hi all, i have some trouble trying to do a form on front-end that insert a page of a specific template. In fact the fields are created automagically but when i submit the form, PW throws me an error like: "New page '//' must be saved before files can be accessed from it [...]". It seems that the files cannot be saved before the page is created. I'm right ? There is a workaround for this ? This is my code: $form = $this->modules->get("InputfieldForm"); $curriculum = new Page(); $curriculum->template = "curriculum"; // get all the fields of template "curriculum" $fields = $templates->get('curriculum')->fields; // we add also the submit $submit = $modules->get("InputfieldSubmit"); $submit->attr("value","Invia"); $submit->attr("id+name","submit"); foreach ($fields as $key => $field) { // We must have the Inputfield instance, not the Field. $form->append($field->getInputField($curriculum)); } $form->append($submit); if( $input->post->submit ): // validate the form $form->processInput($input->post); // Check if there are some errors if( $form->getErrors() ): echo $form->render(); else: $curriculum->title = $form->get('nome')->value; $curriculum->parent = $pages->get('/curriculum/')->id; $curriculum->save(); foreach( $fields as $field ): // now we save all the fields. $curriculum->set( $field->name, $form->get($field->name)->value ); endforeach; $curriculum->save(); endif; else: echo $form->render(); endif;
  7. Ok! Then i tried to do a checklist: Translate the documentation in this order Brief description of PW Installation of PW Installation of language pack Start to translate also this part: http://processwire.com/api/ (PDF) Collect all the italian sites for a little showcase (i have only 1 site really active, the rest is on development) http://www.estreti.it/ http://smartenergysite.infofactory.it/ (Under development, on the next week is completed). http://sincronpolis.infofactory.it/ (Under development) Check if we use Ryan hosting or my server or whatever other hosting. Make the site! Any suggestion are welcome!
  8. You are right . Nico if you can setup the git version of layout then i will proceed to translate it on my machine. One question Nico, the site is on the Ryan's hosting or your own ?
  9. I think is a political choice... Personally I would prefer to make another layout (obviously following the actual theme of processwire.com), because i want to personalize the download of PW by including the italian translation and part of the documentation. I think is really important for non-english developers to give a good documentation in mother language, especially on make modules.
  10. I saw only now the German site and it is quite similar at the actual main homepage. There are some guidelines to follow ?
  11. Great Ryan, I have my own server with IP : 205.186.157.177 You can setup the DNS with this IP. It will be visualized an ugly "Forbidden" but i think is not a problem now Thank you!
  12. I all! I have noticed that the number of rows is ignored. What i am missing ? USSliberty PS: I'm using PW 2.3.0
  13. I have noticed that is better to use "%=" than "~=" with my module. Additionaly i was wondering if i can change programmaticaly the Default Search operator....
  14. Grazie Luca! Comunque tranquillo, di certo noi tutti non abbiamo da fare solo questo nella giornata, se si farà lo si fa con la relativa calma quando c'è tempo!
  15. Ciao Lorenzo, Io adesso cerco di contattare altre 2 persone nel forum che sono sicuro che sono italiane. Vediamo se rispondono all'appello
  16. Hi all! I want to create the Italian version of processwire site... Who want to join this project ? Every feedback is appreciated !
  17. Ok, updated GIT & Modules directory here (0.3.0 now) • Now you can optionally select to use the PHP class or poppler. • On the uninstall now i remove the indexer field. • More normalization of the text stored in the indexer field. USSliberty
  18. Yuhuu! Now It works! I think some variables where overwritten somewhere. Now i will prepare a new version of the module with this Class. Thank you adrian for help! PS: I have updated the credits Pdf2txt.php
  19. It's true, it works alone but if i integrate into my module doesn't return nothing. Very weird...
  20. That's true, i haven't notice that since i haven't enabled the debug on PW. Now is fixed on GIT!
  21. If you can print $chunk["data"] and $data after this line maybe it will be useful. $data = gzuncompress($chunk["data"]); Thank you!
  22. I have tried both, also this one picked from PHPClasses: http://www.phpclasses.org/browse/file/31030.html This one return me only "Local strategies to reduce climate risk" that is the caption of the first image. At this time i suspect that version of my PHP have some trouble (PHP/5.3.3-7+squeeze9)....
  23. Added! @adrian i've tried your class but doesn't return me any text...... . Have you got some pdfs that you know works ?
  24. Thank you! I will try it. I only need to convert files in plain text, if i can do this without any other package it will be great!
×
×
  • Create New...