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
@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 ?
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
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
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