Cesco
Members-
Posts
25 -
Joined
-
Last visited
Everything posted by Cesco
-
Thanks @wbmnfktr. Trick is saving the multipage reference field after any "add". I was confused by the "add" command, I thought it added the page.
-
Hi, i try to add multiple page on pagereference field via php script. I have a cycle with this code inside $p->services_field->add(ProcessWire\wire('pages')->get('/servizi'.$servizi[$service].'/')); Page instance has services_field populated like below (it seems correct): [services_field] => ProcessWire\PageArray Object ( [count] => 7 [items] => Array ( [Page:0] => Array ( [id] => 1091 [name] => dtv [parent] => When save page, all information are saved but not services_field. How can i do ? Thanks Francesco
-
Ok nice! Thanks!
-
@bernhard Thanks you very much, it works for new pages, for old i update status1021, status1022 fields to "1" directly to db and translation appears. ?
-
Hi, i created a template with PageReference Field on a multilanguage site. I set possbility to create new page directly from the page template, it works. The new entry was create only in default language. After creation i set the other language by editing the entry. When i try to get field on view i don't find entry in other language: $services = $pages->find("template=service") It returns all services if i view site in default lanauge, empty if i view site in other language. If i create the services directly on Tree it works. What i can do? Thanks in advance.
-
Interesting solutions, i try url match works but it redirect to complete path instead of return content Interesting solution. I've tried it, but instead of showing the content of the page in the url I'm at, it redirect to the full url ?
-
Tnx @BitPoet i think this is the solution !
-
Thanks @Jan Romero for your answer. My goal is to have the url of buildings like children of home page, so $page->url must return "shortcut" path. I think your last idea , all the build under home page and a flag to filter them on a page tab (?), is the best solution, if need i can create children and path still correct. Is there any module to make it or i must create new one? Thanks
-
Hi i need to insert many pages (over 300) to my website. This pages are buildings and i want to organize them like children inside a parent page. Example: buildings |_ building 1 |_ building 2 .... So i want that url of this pages are not "https://.... /buildings/building-1" but "https:// .... /building-1" I don't want to use rewrite because i think it not a good solution about SEO. Can i strip parent url before ? Thanks Francesco
-
Sorry i solved by using CustomInputfieldDependencies ?
-
Hi is possible to hide FieldsetTab if page has field set to certain value? It's possible for other field type by Input->Visibility->if... but not for FieldsetTab. Thanks Francesco
-
Wow thanks it works! Now i can find how hide other page to login user ?
-
Hi, i need to create about 200 pages and permit to edit each page only to their owner. What's the best practice? Thanks
-
I've upgrade to 3.0.126 and it works now. Thanks anyway.
-
Hi to all, i try to save translation on my template from "Find file to translate". Set the string, click save, ProcessWire give me notify "1 translation changed +1" ... but after all field are blank. Processwire v. 3.0.120 Any suggestion? Thanks in advance
-
Designme - Visually Layout Your Edit Screens - Preview
Cesco replied to joshuag's topic in Modules/Plugins
Really nice! Good Job -
anyone can help me? Thanks
-
Hi I develop a website with processwire in a subdomain of the destination domain, but now i can access to admin only through the subdomain. If i try to access from domain the message forged appears ( In italian: "Questa richiesta è stata bloccata perché sembra essere forgiata." Il processo non ha ritornato contenuto.) I check folder permission and it's ok. I try to apply other solution read in the forum (db, ecc..) but with no success. Can someone help me? Thanks
-
It comforts me Thanks
-
Thanks @bernhard you save my time ... i feel so stupid
-
Hi is it possibile to translate some string like __('string') on _main.php neither on home.php ? I don't see the possibility to translate the file on "File find to translate". Thanks in advance Francesco
-
Hi all i've used Hannacode to include a php page with a form. The "action" of this form is to another page that have another php file include. Last php file get post var and print the result. The problem is that when i submit the form 8/10 the new page loading but site freeze. If i reload the page (and re-submit the form) it works. I don't know if it depends to hannacode or processwire. I have another site on same server written in pure php but i never have this type of problem. Thank in advance. Below the result page php code: Hannacode <?php include (wire('config')->paths->templates.'_form-application-result.php'); ?> _form-application-result.php <?php foreach ($input->post as $k=>$v) { if ($v != '' && $k != 'g-recaptcha-response') { $session->set($k,trim($v)); ?> <div class="row"> <div class="col-sm-3"><?= ucwords(str_replace('_',' ',$k)) ?></div> <div class="col-sm-9"><?= strtoupper($v) ?></div> </div> <? } }
-
Ok nice! thank you
-
I have to choose normal installation and after add language, is it correct?
-
Hi everyone i'm new on ProcessWire. I download and install version 3 and it works very good. I choose multi-language site for my purpose and I install Italian language pack for admin. To set default admin language i choose it for admin user on setting menu and it works. I want to know if it's possible to set to default Italian language also for frontend. I try to set Italian language for guest user but don't work. I read something about a module, but i don't know i make it. Can you help me ? Thanks in advance. Francesco