Jump to content

SIERRA

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by SIERRA

  1. I created a checkbox field as below. How to display the list of check boxes in a form in front end for the user to choose from. Thanks
  2. I am getting warning as below after login as admin Please suggest can I include ‘en_US.UTF-8’ against English -> /wire/modules/LanguageSupport/LanguageSupport.module as in below screen shot. But against ‘Chinese’ the same corresponding file does not exists. Thanks
  3. Thanks, 'Restrict Tab View' module is working fine Is there a possibility to list only the pages which have edit access. Currently this is listing the pages which have both edit and view access alone.
  4. I would like to give edit privileges to client for editing content in my processwire site. They should have privileges to edit only the content. Thanks I created a role as ‘editor’ and assigned ‘edit pages’ and ‘view pages’ privileges to corresponding templates Once logged in as ‘editor’ this is displaying all pages with both ‘edit’ and ‘view’ privileges. Is it possible to list only pages ‘edit’ privileges after login Is it possible to disable ‘Settings’ from those editable pages
  5. So not at the same time. The user has to decide/switch to its favourite language. -- Yes To get this done please read the article I linked above. You may although want to create a new ProcessWire instance with the Multi-Language Profile. In that profile you will find almost everything you want and need. -- Ok, will check on this. Thanks
  6. So you want the homepage to be displayed in both languages at the same time? - Yes I would like to have all pages of the website (the front end of the website alone not admin panel) in both 'English' and 'Chinese' with a language switcher provision.
  7. Hi, Thanks for your reply The field that you referred inside 'Setting' was empty. Then I updated with the value 'cn' as referred in attached screen shot. Now in view->New window/Tab->Chinese this is displaying the Chinese version that I created. And in view->New window/Tab-> English this is displaying the English version. Actually I would like to have the front of the site alone in both 'English' and 'Chinese' version. I have attached the steps what I am doing in my first post (pw-reference-09052018.docx). Could you please confirm what I am doing is the correct way. Thanks ref-24042018.docx
  8. Sorry. By mistake this happened. Actually I thought to post this in 'Multiti language Support forum'.
  9. I want to display the web site in English and Chinese. I have the ‘English’ version of the site. After following attached steps the both versions are displayed in English only. Could you please suggest on this. Thanks. pw-reference-09052018.docx
  10. Hi Thanks, below code is working fine. The issue is due to incorrect name foreach ($bookeddetails as $bookeddetail) { $bookeddetail->bookings_done=10; $bookeddetail->of(false); $bookeddetail->setAndSave('bookings_done');}
  11. Hi I also tried to remove an repeater item. This is also not working. Please suggest is there any permission issue. If I run the below code Id value is getting displayed but not able to delete $page = $pages->get(1128); $datetofind=strtotime("2018-05-11"); $timefromfind="10:00 pm"; $bookeddetails = $page->booked_days->find("date_value={$datetofind}, time_from={$timefromfind} "); echo "Id ".$bookeddetails."<br/>"; $page->booked_days->remove($bookeddetails); $page->save(); Thanks
  12. Thanks I tried but this shows error as 'Error: Call to a member function of() on null ' Now the code is foreach ($bookeddetails as $bookeddetail) { $bookeddetail->bookings_done=10; $bookdetail->of(false); $bookdetail->setAndSave('bookings_done'); }
  13. Hi I am using a repeater field as below booked_days date_value time_from bookings_done I would like to increase the bookings_done by one against a date and time. So I used below code. But it shows error as 'Error: Exception: Can’t save page ...' $datetofind=strtotime("2018-05-11"); $timefromfind="10:00 pm"; $bookeddetails = $page->booked_days->find("date_value={$datetofind}, time_from={$timefromfind} "); foreach ($bookeddetails as $bookeddetail) { $bookeddetail->bookings_done++; $bookeddetail->save(); } Could you please suggest on this. Thanks
  14. I am using a options with in repeater as below. Repeater is: normal_days Options field inside repeater is : tables Options are: table 1, table 2, table 3 To display them in front end I am using loop as below.But this display the values 3 times (like table 1, table 2, table 3, table 1, table 2, table 3, table 1, table 2, table 3) foreach ($page->normal_days as $normal_day) { foreach ($normal_day->tables as $table) { echo $table->title.","; } } Please suggest how can I fetch this Thanks
  15. I am creating repeater as below for table booking in a restaurant. To find a timing slot for a specific day I am using below loop. Please suggest is this correct or is there any other optimized way of doing this. Thanks normal_days time_from time_to special_days date_value (this is a date field) time_from time_to PHP code $datetofind=strtotime($date); foreach($page->special_days as $special_day) { if ($special_day->date_value==$datetofind){ $slot_txt=""; if ($special_day->time_from!="" && $special_day->time_to!="") $slot_txt.=$special_day->time_from." to ".$special_day->time_to."<br/>"; } } ….
  16. We have included below e-commerce features to process wire Product display shopping cart with paypal integration We are using paypal IPN. So in order to store the transaction details returned by paypal (like 1. Order head- transaction id, date and gross amount 2).Order detail - item id, quantity and amount, please suggest on the below Whether we need to create a new page for each order head with needed fields new subpages for each order details items with needed fields or is there any other correct way of doing this Thanks
  17. Yes it is working now. I am new to Processwire. Thanks for your help
  18. I used this link https://webdesign.tutsplus.com/tutorials/how-to-develop-a-processwire-theme--cms-25692 and created custom template. But after custom template the navigation and content repeats second time as marked in attache screen shot. Could you please suggest on this Thanks
×
×
  • Create New...