Jump to content

SebastianP

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by SebastianP

  1. Thank You! Another proof of the power of processwire and the great community!
  2. Hi, I'm wondering what's the best way to provide only the page edit form, without header, footer and breadcrumb (see screenshot). Can I hook into the rendering and remove some parts? Thank you in advance, with best regards Sebastian
  3. I've found the reason. The module "Restrict Tab View", especially the activation of the "tab-view-hide"-permission causes this behaviour. After deactivting this option, the upload works again. Best regards Sebastian
  4. Hi @adrian, thank you for providing this helpfull module! I've found a strange behaviour in my backend: when the "tab-view-hide"-permission is set for a role, the image or file upload fails. Please have a look at my post. Thank you, best regards Sebastian
  5. Hi, when I try to upload an image with non-Superuser role, the spinner does nor disappear and the upload dont get finished. I get an error in .../wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js: "VM1186:1 Uncaught SyntaxError: Unexpected token '<', "<script>"... The message which is returned as XHP-response is: <script> $(document).ready(function() { $("#_ProcessPageEditViewDropdown").remove(); }); </script> And this breaks the json parsing of this response. What's going wrong here? Thank you, best regards Sebastian
  6. Hi, after years of successfully using the WireMailSmtp module (thank you Horst!), today I've installed it in a new website and get the following error on send (or test settings): syntax error, unexpected fully qualified name "\getmessage" (line 3409 in site/modules/WireMailSmtp/smtp_classes/email_message.php) This is the line 3409 Function GetMessage(&$message) The PHP version is 8.0 Can anyone help? Thank you, regards Sebastian
  7. Hi, after years of successfully using the WireMailSmtp module (thank you Horst!), today I've installed it in a new website and get the following error on send (or test settings): syntax error, unexpected fully qualified name "\getmessage" (line 3409 in site/modules/WireMailSmtp/smtp_classes/email_message.php) This is the line 3409 Function GetMessage(&$message) The PHP version is 8.0 Can anyone help? Thank you, regards Sebastian
  8. Apparently it was a side effect of the PHP memory_limit being too low. I increased this value and now it works without problems. Regards Sebastian
  9. Hm, I've fixed the error by adding this two lines to /wire/modules/Fieldtype/FieldtypeImage/FieldtypeImage.module: public function hasFiles(Page $page, Field $field){} public function getFilesPath(Page $page, Field $field){} Now the Website is running again - but what's the reason for this strange thing? Regards Sebastian
  10. Hi, I've several Websites running ProcessWire 3.0.200 and PHP 8 without problems - but one of these gives me an error: Fatal Error: Class ProcessWire\FieldtypeImage contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (ProcessWire\FieldtypeHasFiles::hasFiles, ProcessWire\FieldtypeHasFiles::getFilesPath) (line 18 of /var/www/.../wire/modules/Fieldtype/FieldtypeImage/FieldtypeImage.module) Can someone clearify this and help? Thank you, regards Sebastian
  11. Hi Bernhard, hi Robin S, thank you! That is what I was looking for. Regards Sebastian
  12. Hi, is there a way to run a javascript function after add a new repeater item? I want to register an event handler on a page reference field inside the repeater item. I have inserted a custom javascript file with a runtimemarkup field. Thank you for any suggestions! Regards Sebastian
  13. Hi, I have a repeater which contains some text fields and one FieldsetPage field with own fields. In this FieldsetPage field I want so show/hide one of the fields in addiction of the depth of the parent repeater element. I have tried to set the "show only if" property to "parent.depth=1" and "parent.parent.depth=1", unfortunately without success. Is there the possibility to do this? Thank you for any hint or suggestion! Regards Sebastian
  14. Oh man - you are my hero! That works like a charms! Thank you, best regards! Sebastian
  15. I try to explain the situation better: my website has two languages, "default" and "english". In my template "article" are two page reference fields: "related articles" and "related articles english". Not all pages are translated to english, so the field "related articles english" holds sometimes a different selection of pages then the field "related articles". The backend user language is "default". On typing an english word in the field "related articles english", the selector should search in the english fields (title, body...) of the pages and return the results. This behaviour can I force with adding "lang_id=my_english_language_id" to the selector string. So I get the correct results with the english titles. But when I select/add a returned page to the field "related articles english" and try to save the page, an error occurs, because the field "lang_id" on the selected page dont exists. I'm wondering if there is a selecor string, who searchs in the english fields of a page, like "title_EN%=searchword" or something like that... Thank you for any suggestion or hint! Regards Sebastian
  16. Hi, I have an autocomplete page reference field in my template. On typing I want to get only results in a certain language. So I tried something and found the solution in this selector: parent=/the_parent_page/,lang_id=18712,title!="" (lang_id is the id of the required language). So far, so good - BUT: when I select one ore more items by this field and then save the page, an error occurs "Field does not exist: lang_id" and the field is not saved. Can you help me? Thank you, regards Sebastian
  17. Hi, is it possible to configure the search fields for an autocomplete PageReference field to search in another then the default language (in the backend, without to change the users language)? Thank you for suggestions, regards Sebastian
  18. Thank you very much for the idea - a simple "wire("user")->language = wire("languages")->get("name=default");" on the top of the admin template does the job (in this case all admin users use the default language, so a separate field is not necessary) Regards Sebastian
  19. Hi there, I've build a website with a language switch. If the user is logged in in the same browser, the website displays also an "edit"-button, whitch opens the page in the backend - thats why I cannot 2 different browsers for viewing/editing. So far, so good:-) But if I change the language in the frontend ($user->language = ...), the language in the backend is also changed - that's not so good, because not all pages are translated and have titles in the other language. Is there a way to force the backend language to the logged in users default language? Or can I set the language of the frontend without change the users language? Thank you in advance, regards Sebastian
  20. Thank you both! I have found now another solution for my problem with the use of urlSegments. Regards Sebastian
  21. Hi, for a news blog I select the articles by template and sort by post_date: "template=article, sort=-post_date". Also I have a page reference field, wich holds a manually selection of some of this articles. Is there a way to customize the selector string so the manually selected articles come as the first entries? Because of some issues with the pagination I don't want merge two page arrays. Thank you, regards Sebastian
  22. Thanks for your answer! Meanwhile I've imported the files manually ("new Page()... ") - the hint to the "actionInsert()"-method helps me with the rest:-) Are you not able to import them using Media Manager upload feature? No - I want to rebuilt the existing wordpress posts (text, text with image, galleries and so on) with repeater items; so I must tag the files during the import with their ID from the wp_posts table.
  23. Hi, I've bought Media Manager before a few days and have a question: how can I add files to the media library via the api and how can I add media manager assets to a media manager field via the api? I'm importing a large Wordpress page and have to add a lot of files... Thank you, regards Sebastian
  24. Thank You horst, it works! Until now I'm not so familiar with namespaces - the man grows with its tasks...
×
×
  • Create New...