Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

40 Excellent

About manlio

  • Rank
    Sr. Member

Profile Information

  • Gender
    Not Telling
  • Location

Recent Profile Visitors

2,105 profile views
  1. @kongondo First. Thank you for this great module! I'm writing this in the hope it can help someone. I'm using the latest PW version. Using the module I received this error when switching to a different language from the default one. No menu items found! To solve the issue I went in the admin and find the Menu Builder page (under Admin>Setup) then I edited both the "Menu Builder" page and "mainmenu" page (this a menu that I built in Menu Builder) and set the other language to active. It seems the module doesn't set as active new pages in languages different from default. My PW installation by default set it to false. Hope this helps. Ciao
  2. Thank you Zeka, unluckily I don't have any repeater fields with the same name 😞 You were right, I was looking for exact same name.... that seems to be the issue. Thank you!
  3. Hi guys, I have a problem with some templates. I don't know why but I have some templates (created by me) that are in the system templates. I wanna remove them, but I'm not able to do this. I have tried something like this $t = $templates->get("mytemplate"); $t->flags = Template::flagSystemOverride; $t->flags = 0; $templates->delete($t); $fieldgroups->delete($t->fieldgroup); It works and doesn't give any errors, but whenever I go into the admin backend template page it appears again (it seems to be regenerated). Anyone knows how can I fix it? Thank you
  4. Hello! I'm not able to create a role to give users the ability just to view users (not edit them). Do anyone knows how to do it? Thank you
  5. Hi! I am using intercooler with processwire and I'm really happy from this combination. I am not using the PW intercooler module by pwFoo because generally I find Intercooler very simple. Although I have a problem when I try to replicate this example http://intercoolerjs.org/examples/deleterow.html Basically when I delete a row I wanna pass back the http response using something like $d = $pages->get($id); $pages->delete($d); header('X-IC-Remove : 1s',true); but I receive a page not found error that I cannot understand. If I remove the header line everything is fine (but I cannot pass the 1s information back). Hope that someone that has already jumped in has an idea how to solve this. Maybe PW is blocking something? Thank you very much
  6. Thank you Adrian! You were really helpful. Have a nice day
  7. Thank you all for your incredible support and for confirming that save in dB or in session variables is the good way to follow. If I choose the "save to pages" route, I am not sure how to plan the creation of the page. Should I create the page in the first step of the quiz and than pass the id page post variable to the following steps? In this way every time a guest refresh the first step of the quiz in the browser a new page would be created. Can this generate too many unuseful content and hit on server performance? Thank you again and sorry for the dump questions.
  8. Hi to everybody. I'm building a short online quiz (10 questions - and for every question the page reload) and at the end of the quiz I need to present a summary of all correct and incorrect answers. Everyone can fill the quiz (the user doesn't need to be logged in and so any guest can access the quiz) and I would like to know if there is an easy way to store all the data so I'm able to read them at the end of the quiz. I tried to pass all post variables but I find it complicated because I need to pass everytime a lot of data, How could I store the data as PW pages and delete unnecessary data as soon as the process is finished? Is this a good idea? Thank you
  9. Thank you Tom, I am on the same server so no problem.
  10. Thank you Tom, partially you replied to my question because I learned a new interesting approach. Thanks! I think would be useful also to see other approaches. For my specific question, do someone think it is a safety issue? Thanks
  11. Hi! I have a stupid question. Usually I leave ajax called files outside PW, but in the case I wanna leave them in the templates folder which is the best approach to use? Is it safe to create a unique template that can be associated for every ajax called file (for example based on template (sanitized) title)? Just to explain it better, I could create a template like (simplified version) $path = $page->title; $include ("$path"); and create a new page with this template for every ajax called script (changing accordingly the title). Tthank you!
  12. Just as reminder for others. In my case inline editing in PW 2.8.35 don't work, updating to PW 3 fix the issue (although I prefer remaining on 2.8). Thanks adrian for your always present support.
  13. Thank you very much Robin S I will try without using sub selector. For the second problem ok! I read better the documentation and I think I need to target every language. Thank you!
  14. Thank you Robin S. I had tried before this approach but I receive this error Unknown subfield: name11658 When I used in a selector like this template=mysubcategory,pageref_category.name{$user->language->id}=$urlSegment1 //pageref_category is a multiarray page field type) So I tried a different not elegant route that uses directly title. Before putting into the selector I convert the dashes into spaces $urlTitle1 = str_replace("-", " ", $urlSegment1); //convert dashes into spaces //the selector becomes something like template=mysubcategory,pageref_category.title=$urlTitle1 Now everything seems to work although maybe I can have new problems if the title has to remain the same in different languages. Anyway now I ahve a new problem (or maybe I'm tired ) I have a multiarray page fieltype and I'm using alternate multilanguage fields. The problem is that when I use this $selector = "template=prodotto,pageref_categoria.title=$urlTitle1"; $items = $pages->find("$selector"); although the user changes language, it continues to filter data based on pageref_categoria default language.... Maybe I need a rest
  • Create New...