manlio

Members
  • Content count

    118
  • Joined

  • Last visited

Community Reputation

37 Excellent

About manlio

  • Rank
    Sr. Member

Profile Information

  • Gender
    Not Telling
  • Location
    Italy

Recent Profile Visitors

1,806 profile views
  1. 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
  2. manlio

    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
  3. manlio

    Thank you Adrian! You were really helpful. Have a nice day
  4. manlio

    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.
  5. manlio

    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
  6. manlio

    Thank you Tom, I am on the same server so no problem.
  7. manlio

    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
  8. 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!
  9. 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.
  10. manlio

    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!
  11. manlio

    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
  12. manlio

    I don't know why but it happens also with 2.8.35.
  13. manlio

    Thank you for your reply!
  14. manlio

    Hi swampmusic, I stumbled in the same problem. I need to use localName($user->language) in a selector. Did you find a solution?
  15. manlio

    Thanks to this post I discovered that I can access local names in this way $item->localName($user->language) Now I just need to understand if it is possible to do the same thing in a selector to filter the results. EDIT: I have just found that I'm not alone