Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by manlio

  1. This is a good suggestion, I never used Admin Actions and I didn't know that actions can be easily added and modified. In the meantime I'm having success with the ImportCSV module, I just need to move the pages in the right place and than I'm fine. For multiple roles I used the pipe "|" and it works like a charm. It's a pity that this module hasn't this feature by default. I think PW needs an easier (and maybe native) import for external users ๐Ÿ™‚. If I cannot complete I will try also your suggested route, I really appreciate your help Bill. Thank you!
  2. Thank you BillH, I was trying it in this moment and it seems to work. The only drawback for me is that I need to provide unique name in the CSV file and it doesn't change automatically for me. Apart from this it works quite well. I am still trying to make ImportCsv module work to see if it is quicker for my use case. Thank you again!
  3. Probably ImportPagesCSV module is still my best choice, but is there any way to import multiple roles for the same user? Thank you.
  4. Hi to everybody. I need to import a lot of users with custom fields, all with the same password (it is for an event). I have used in the past ImportPagesCSV module (with some "hack" to move the imported pages to the users PW admin location) and I would like to know what is the best approach for this task today. Admin Action module can do this? Another doubt is how I have to write multiple roles (for the same user) into the csv file to be imported correctly? Thank you!
  5. Is it possible to use this module with email instead of username? I tried a search with no luck. Thank you!
  6. Thank you Zeka. I have seen the ProcessLoginHistory but in a post from Teppo I read that this module only logs login attempts and not logout. It is dated 2017 and maybe something has been updated in the meanwhile. I didn't know Google Analytics was able to track logged in users :-). Due to GDPR law pobably we cannot use it, our server are located in EU. I will try to install ProcessLogin History and see if it works. Otherwise any other insight is very welcome. Thanks!
  7. I to everybody, I need to track users (only logged ones) when they will see a streaming event. The purpose is to make some stats afterwards and I need to retain also some data like username, company, ecc... I'm searching for the simple solution to implement in PW (also Analytics services). I searched the forum and I found something but not exactly what I am looking for. Thank you for the help, have a nice day.
  8. In the meantime I have manually fixed all the compromised records using the admin and I cannot test it, but thank you very much Robin for taking time to provide this solution. Really helpful for any additional repeater problem ๐Ÿ™‚ Have a nice day.
  9. Hello! I have this problem and I don't know how to fix it. In the user template, I have inserted a repeater field (called user_payment). This repeater is populated from API after a payment confirmation. My initial code was wrong and only in a second time I have fixed it adding the last two rows $mypay = $user->user_payment->getNew(); $mypay->text = $mytext; $mypay->of(false); $mypay->save(); //** Added later $user->user_payment->add($mypay); $user->save(); Some payments was stored in the wrong way and now I am able to see the data when I edit a user in the PW admin backend, but I can't search them in lister pro or in an API search. I can fix the problem if I edit the user and save the page from the backend, but I wanna know if there is a way to automatically fix all the data. Thank you for any suggestion! Ciao
  10. Thank you for all the precious advices! PW is an amazing software but community members like you and Dragan makes PW outstanding. I will follow your advices and I will start rebuilding a small part of the reserved area and see what I am able to do with Vue. Have a nice day
  11. I have already build a "reserved area" for logged users on my PW website some years ago. I developed the "reserved area" using front end tools (Jquery and HTML) and the users don't see PW admin backend. Now I wanna extend and rebuild with modern tools this "reserved area" where users can modify their personal data, request certification cards for their students, publish courses, ecc... I was asking myself if I can have some big advantages using new frameworks, anyway your replies already cleared some doubts. About this: I wrote bad and quickly, sorry. I was meaning "Thatโ€™s why we went for a decoupled approach where we use only ProcessWire to edit data and then pass it to the frontend with a single request returning everything as JSON-data" taken from this article https://medium.com/icf-church-developers/processwire-vue-js-a-lovestory-d4d5bca365 Thanks for your patience
  12. Thank you Dragan. Actually I wanna build a fancy dashboard but not integrated in PW admin. I'm sorry for my bad explanation but basically it is due to my lack of knowledge about this subject. I was thinking to build a SPA dashboard because it seems to be quick and reactive (lack of SEO is not a problem). For what I have understood I should create a Vue App that manage all the pages and I should use PW just to send Json files. So in this case I was asking where to put Vue files because I'm not sure they are accessible if I put them under site/templates . Maybe outside of site/ folder? Or should I create a standard PW template which contains vue? Please forgive my rough/orrible explanation, I will try to study more about this subject during these days starting from your provided links ๐Ÿ™‚. I want to try something new, but for sure, at first glance, it seems to me not so easy to start with and it seems to add a lot of layers and things to study. Thank you!
  13. Thank you teppo for your quick reply and useful information with which I agree completely. ๐Ÿ˜€ Any other point of view is still appreciated.
  14. Hi to everybody! I'm using PW from some years now and I really love it! Developing website is not my primary job and usually I build website starting from web templates. I prefer to use developing tools that seems quick and easy to learn and for this reason I am interested in studying something like Svelte.js and Vue.js. I need to rebuild a backend (with messages management,profile, ecc...) and I was thinking to start from a web admin theme and then add some interactions using one of these framework/compiler. I'm not really confident with webpack, npm, ... but anyway I can use these. I would like to have an advice about one frontend framework that I could use easily together with PW with some advice about file structures. I know PW can work with anything, but maybe a framework can be easily integrated than another. I know about Vue boilerplate and I have already searched the forum, but I have still doubts if it worths using something new over Jquery or if it is a waste of time in my case ๐Ÿ™‚ Thank you for any suggestions. Have a nice day!
  15. @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
  16. 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!
  17. 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
  18. 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
  19. 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
  20. Thank you Adrian! You were really helpful. Have a nice day
  21. 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.
  22. 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
  23. Thank you Tom, I am on the same server so no problem.
  24. 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
  25. 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!
  • Create New...