-
Posts
94 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Alessio Dal Bianco
-
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
- 10 replies
-
- 11
-
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
-
Really Really cool! Especially when he selected the button and all the gradients filled up automatically!
-
I'm costrained to do this because the function "$field->getInputField($curriculum)" necessary takes an instance of Page to retrive the Inputfield associated.
-
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.
-
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;
-
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!
-
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 ?
-
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.
-
I saw only now the German site and it is quite similar at the actual main homepage. There are some guidelines to follow ?
-
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!
-
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
-
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....
-
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!
-
Ciao Lorenzo, Io adesso cerco di contattare altre 2 persone nel forum che sono sicuro che sono italiane. Vediamo se rispondono all'appello
-
Hi all! I want to create the Italian version of processwire site... Who want to join this project ? Every feedback is appreciated !
-
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
-
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
-
It's true, it works alone but if i integrate into my module doesn't return nothing. Very weird...
-
That's true, i haven't notice that since i haven't enabled the debug on PW. Now is fixed on GIT!
-
If you can print $chunk["data"] and $data after this line maybe it will be useful. $data = gzuncompress($chunk["data"]); Thank you!
-
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)....
-
Thank you adrian, i'm looking in now
-
Added! @adrian i've tried your class but doesn't return me any text...... . Have you got some pdfs that you know works ?
-
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!