verdeandrea
Members-
Posts
129 -
Joined
-
Last visited
Everything posted by verdeandrea
-
Hi guys, when i try any search from the admin page i get this errors: TemplateFile: Field does not exist: body<pre>#0 [internal function]: PageFinder->___getQuery(Object(Selectors), Array) #1 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #2 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('getQuery', Array) #3 /accounts/20tab_twig/www/explorerskills/n/wire/core/PageFinder.php(144): Wire->__call('getQuery', Array) #4 /accounts/20tab_twig/www/explorerskills/n/wire/core/PageFinder.php(144): PageFinder->getQuery(Object(Selectors), Array) #5 /accounts/20tab_twig/www/explorerskills/n/wire/core/Pages.php(144): PageFinder->find(Object(Selectors), Array) #6 [internal function]: Pages->___find('title|body%=hhh...') #7 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #8 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('find', Array) #9 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module(118): Wire->__call('find', Array) #10 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module(118): Pages->find('title|body%=hhh...') #11 [internal function]: ProcessPageSearch->___execute() #12 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #13 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #14 /accounts/20tab_twig/www/explorerskills/n/wire/core/ProcessController.php(196): Wire->__call('execute', Array) #15 /accounts/20tab_twig/www/explorerskills/n/wire/core/ProcessController.php(196): ProcessPageSearch->execute() #16 [internal function]: ProcessController->___execute() #17 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #18 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #19 /accounts/20tab_twig/www/explorerskills/n/wire/core/admin.php(64): Wire->__call('execute', Array) #20 /accounts/20tab_twig/www/explorerskills/n/wire/core/admin.php(64): ProcessController->execute() #21 /accounts/20tab_twig/www/explorerskills/n/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/accounts/20tab...') #22 /accounts/20tab_twig/www/explorerskills/n/site/templates/admin.php(15): require('/accounts/20tab...') #23 /accounts/20tab_twig/www/explorerskills/n/wire/core/TemplateFile.php(140): require('/accounts/20tab...') #24 [internal function]: TemplateFile->___render() #25 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #26 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('render', Array) #27 /accounts/20tab_twig/www/explorerskills/n/wire/modules/PageRender.module(337): Wire->__call('render', Array) #28 /accounts/20tab_twig/www/explorerskills/n/wire/modules/PageRender.module(337): TemplateFile->render() #29 [internal function]: PageRender->___renderPage(Object(HookEvent)) #30 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #31 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('renderPage', Array) #32 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(381): Wire->__call('renderPage', Array) #33 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(381): PageRender->renderPage(Object(HookEvent)) #34 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('render', Array) #35 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageView.module(152): Wire->__call('render', Array) #36 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageView.module(152): Page->render() #37 [internal function]: ProcessPageView->___execute() #38 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #39 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #40 /accounts/20tab_twig/www/explorerskills/n/index.php(194): Wire->__call('execute', Array) #41 /accounts/20tab_twig/www/explorerskills/n/index.php(194): ProcessPageView->execute() #42 {main}</pre> Is the first time i get this error from admin i can't get why. Thanks
-
Hi guys, is there a way to change the "name" field label? I'm working on a site where some pages contain information about people and I'm afraid that the label "Name" could be misunderstood by clients, when they are inserting content via admin Thanks.
-
Add new pages with Page edit per user module
verdeandrea replied to verdeandrea's topic in General Support
Ok got it, but if Group A, Group B and Group C have the same template i can not have different roles, is that right? -
Add new pages with Page edit per user module
verdeandrea replied to verdeandrea's topic in General Support
Thanks cstevensjr, so i need to create different templates for every group and different templates for every event list, and then set their access differently for every user? Is there a chance to use the same template but differentiate the access for the group page and events list? -
Add new pages with Page edit per user module
verdeandrea replied to verdeandrea's topic in General Support
Thanks Martjin. I'm not sure i got it... This is my situation: I have these pages - Group A (template: "group") --- Events (template: "events_list") ------ Event lorem ipsum (template: "event") ------ Event dolor sit amet (template: "event") ------ ect. - Group B (template: "group") --- Events (template: "events_list") ------ Event blablabla (template: "event") ------ Event blablabla2 (template: "event") ------ ect. - Group C (template: "group") --- Events (template: "events_list") ------ Event abcd (template: "event") ------ Event efgh (template: "event") ------ ect. What i need is to create a user that can add event pages just for the Group A, or just for the Group B, or Group C. All the pages share the same tamplates so i'm not sure how i can use the hooks you suggested. -
Hi guys, I'm using the Page edit per user module and i find it really useful but, as I can see, i doesn't allow the user to add new children for a page. Is it right? Is there a way to let the user add children to a page he has rights to edit? Thanks!
-
Great! Thanks.
-
Hi guys, i need to create or edit some pages via front-end. The problem is I don't get how to empty a field for an existing page and dave a new value. I'll try to be clear with this example: the page has a field named "countries" - page fieldtype. It has this value: [pageA, pageB] When save this field like this via frontend $page->countries = [pageC, pageD]; the new value of the field is [pageA, pageB, pageC, pageD] and not just [pageC, pageD]. So i need to empty the field before save the new value, or just the new value to overwrite the old one but i can't get how to do it. Thanks!
-
Yes! That's it! Thanks!
-
Hi guys, I can't get the reason of this error. This is my code $s = $pages->get('1689'); $answer_text = "Yes"; $answers = $s->find('answer_checkbox_repeater.answer_checkbox_text%=$answer_text'); "answer_checkbox_repeater is a repeater field" And i get Fatal error: Exception: Unknown Selector operator: '%=$' -- was your selector value properly escaped? I've tried to change the operator to "=", or "~=" or "*=" but i get the same error.
-
Pages Web Service query doesn't find result
verdeandrea replied to verdeandrea's topic in General Support
@adrian I'm using comma in this way 'service-pages/?title,country,newspaper_country,newspaper,language,place,topics='+value In the instruction page Ryan says Am I doing it wrong? -
Pages Web Service query doesn't find result
verdeandrea replied to verdeandrea's topic in General Support
Sorry guys, i didn't see your answers. @adrian when i try this var search_url = root_path+'service-pages/?title,country,newspaper_country,newspaper,language,place,topics~='+value; $.getJSON(search_url, function(data) { ... }); i get this error in array "Field 'topics_' is not allowed in queries" like the tilde is converted to an underscore. Maybe some problem related to escaping the url (i've tried with no results...) @apeisa yes, i have the results array in the console log but it says 0 results. I really do not understand... EDIT: this is the selector i get in the returned object "title|country|newspaper_country|newspaper|language|place|topics=Reusher, template=giornalista, limit=50" is it correct? EDIT 2: if i try with '*=' operator i get "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='reusher' JOIN pages AS _fieldtypepage2 ON _fieldtypepage2.name*='reusher' JO' at line 3" -
Hi Alessio, sent you a pm.
-
Ok, now i got it. Thanks.
-
Maybe i didn't get how Process Export Profile really works. Does it create a new installation, with the modules or template i decide to export? And i was thinking: does a module installation record data on database? In that case i need a copy of db to import every time i install (or copy) a new processwire site.
-
Perfect, i think i'll go with the second option. Thanks teppo
-
Hi guys, I started using PW for a lot of new projects, and everytime i install a new PW site i always repeat the same modules installation (repeater module, module manager, ecc). Is there a way to have a custom installation, whit this common modules included, in order to avoid this repeated actions? Thanks
-
Hi guys, i'm using the Page Web Service Module and i'm trying to do something like this: $.getJSON('/processwire/service-pages/?title,country,newspaper_country,newspaper,language,place,topics='+value, function(data) { console.log(data); }); where value is, let's say, "Brown". Now, i now for sure that there is a page white the title "James Brown" but this query gives no results. Could someone please help? Thanks!
-
Hy guys, i'm using Page Web Service module and everything is fine. I'm querying for a template that has a repeater page field in it. I get json results with the array node for the repeater field. Every child of this array has these fields from the page: - id - name - parent_id - path - template - title Is there a way to get other fields from that page? Thanks....i hope my english is clear enough. EDIT: I've the same problem with the image field. I get the basename of the image but i don't get the path, so i don't know how top put it in my page.
-
Ok, thanks!
-
Great! Thanks!
-
Hi guys, i see that the admin panel path is set to "/processwire/" by default. I didn't change it during installation but i need to change it now. Is it possible? Thanks, Andrea
-
Thanks Adrian! Ok I'm not going to mess with the default theme. I think i'll just edit its css files without changing template files.
-
Hi guys, i love PW, thanks! I cannot install a new admin theme. I've created a directory called "templates-admin" inside the "site" directory. So the path is /site/templates-admin. Then I've put all the admin templates files inside that directory, but when i refresh the page nothing changes. Am I doing something wrong? Really thanks.