Jump to content

Ralf

Members
  • Posts

    137
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Germany

Recent Profile Visitors

3,867 profile views

Ralf's Achievements

Sr. Member

Sr. Member (5/6)

57

Reputation

1

Community Answers

  1. Hello all, I have a strange behavior here on a system. I have PW Dev 3.0.204 (PHP 7.4 & Chrome latest version for Windows) and the Fieldtype Decimal enabled. If I now create a field (default settings except for Numeric Input type = Number (HTML5)), assign it to a template and then open a page with the template the following happens: I enter e.g. 12345,67 (German notation or English 12345.67 doesn't matter!) into the field and then click Save. PW saves the page and the field now suddenly says only 12345,00 .... And in the database it also says "only" 12345.00 What is going wrong here? I don't remember any hooks. Have I shot something? Is it a bug?
  2. @Robin S thanks for your help, the code WITHOUT "config." at the beginning works wonderfully ๐Ÿ™‚ @Knubbi possibly helps you the contribution of Moritz in this thread here: But I personally have not tested yet!
  3. Hello all, I have a question about the spell checker SCAYT of CKEditor. How do you manage that it is always switched ON automatically and you don't have to click "Enable SCAYT" for every input field? I found the following post in the ckeditor forum https://ckeditor.com/old/forums/CKEditor-3.x/ScaytAutoStartup-CKEditor but if I enter the code from there in my Field "Body" under Input -> CKEditor Settings -> Custom Config Options like this config.scayt_autoStartup: true it doesn't work ... ๐Ÿ˜ข Now my question, how do you do it?
  4. I'm a dork - sorry robin, that was a classic translation error. After reading the sentence, I took the tick out of the box... ๐Ÿ™ˆ Ok, I just shouldn't be in front of the PC when I'm sick. ๐Ÿค’ With the tick, of course, everything works as desired! ๐Ÿ‘ Have a nice day cu Ralf
  5. Hello Community, I am currently working intensively with roles on a site (with Admin Theme Uikit) and the "problem" with the sorting of roles in the user template came up again. Does anyone of you know a workaround for sorting the roles in the user template alphabetically? By default, they are sorted according to the time of creation, which is quite annoying if you have a lot of roles that were not created in alphabetical order. I hope I am in the right part of the forum? Thanks Ralf
  6. Hello Community, Could someone please help me with the input field type "AsmSelect"? I have a field "select_group" (Type: Page Reference) that loads all roles as a selection. Here my customer would like to have a certain role ALWAYS preselected and be able to select additional roles. For this purpose, I have entered the page ID number of the role - 1053 - in the field "Default value" (under Settings specific to "asmSelect"). However, this entry is somehow completely ignored...! Am I misunderstanding something in the description or is it possibly because it does not work with "roles" or is it a bug/feature? For your information, selecting and displaying otherwise works wonderfully. Thanks Ralf
  7. @androbey Thanks for the tip, I think that's exactly what I'm looking for. BUT unfortunately I can't get it to work like in the example... If I use the code from @Edison above, it basically works. But if I extend the if-line - like this if($page->template->name === 'user' && $page->isChanged('roles')) { // >>> APPLY ONLY TO USER TEMPLATE and if I can't address roles directly but have to iterate, I also tried it with a "normal" textfield e.g. like this if($page->template->name === 'user' && $page->isChanged('surname')) { // >>> APPLY ONLY TO USER TEMPLATE OR the if-statement also separately after the if-statement of the template "user"... if($page->template->name === 'user') { // >>> APPLY ONLY TO USER TEMPLATE $changes = user()->getChanges(true); if($page->isChanged('surname')){ // LOG & send email from @Edison } } But with all my attempts I don't get an email anymore ๐Ÿ˜ž Is this related to the user template or have I simply implemented the code incorrectly?
  8. Sorry to reopen this old topic, but I have a question about this exact topic. How can I restrict the sending of emails even further and ONLY if there has been a change to the template user (see code above) AND ONLY for the roles, for example? In other words, please send an email if there is a change in a role (or a field xy) for a user and DO NOT send an email for all other changes for a user!
  9. Hello @bernhard, I'm trying to do exactly the same thing as Mr. NiceGuy and I think I understand what you are trying to tell us with this statement. However, I do not understand how I have to implement your workaround - from the two issues on Github - if I have in a module a "MarkupAdminDataTable" with many pw-panel links and then after editing a panel it updates the MarkupAdminDataTable automatically? Could you possibly help me here?
  10. Hello @adrian, I have found the problem or what setting is related to this error with the failed download. Namely it is because of the "access controls" for this field! Because if I right click on the video element in the template and then in the Modal "Edit Field" on the "Access" tab at the first question "Do you want to manage access control for this field?" on "NO" the setting is, then EVERYTHING WORKS!!! It loads the thumbnail and everything is fine! BUT if I set this setting to "YES" and then give all roles ONLY the page view rights - so that actually "only" the superuser is allowed to edit this field (is actually so desired here) - THEN and exactly THEN the module suddenly does NOT work or gives the error from above and NO image is loaded. Hmmm whether this is now an "error" of PW or of your module? Or is it not a bug but a feature? It's just strange that with a PDF field the whole thing works exactly the same - with the settings regarding visibility and editing only for superuser...
  11. Hello Adrian, you're right, I'm actually using pageFileSecure on the project .... is that a problem? And come to think of it, on the other installation I'm not using it and the second installation is still on an old PW version 2.7 ๐Ÿ˜ž so probably not quite as comparable. Can I give you more details to get to the bottom of the error?
  12. Hello Adrian, I can't get this wonderful module to work on a PW page... I always get this error: PagesEditor: Fehler beim speichern von Feld "Videos" โ€” fopen Fehler fรผr Dateiname: /www/htdocs/xxxxxxxx/site/assets/files/-1329/hqdefault.jpg You have already fixed the problem here in this thread 2016 and actually it should work now.... but unfortunately it does not work for me for reasons unknown to me. What else can I do? My settings look so actually right (have two older projects running with it - without problems) ๐Ÿ˜ž Thanks Ralf
  13. @horst are you still using this hook with the latest PW version? I'm trying to display the button on the right like you, but it's just not displayed on the right. ๐Ÿค” I must confess I do not use the module "AdminCustomFiles" now however it should go with this Hook nevertheless also? $wire->addHookAfter('AdminTheme::getExtraMarkup', function (HookEvent $event) { $parts = $event->return; $parts['head'] .= '<style type="text/css"> #hook_sort_images { float: right; } #hook_sort_images:after { clear: both; } </style>'; $event->return = $parts; }); But it does not currently...
  14. Yes with the HTML5 input type the issue of a comma or dot for the "decimal places" is solved. However, I then have the issue in the admin area that large values are as good as no longer readable, because I can now no longer capture points. With the input type text I can enter commas and dots, but as bernhard has already explained in this issue report, PW then stores no value in the DB. And now?
  15. Thanks for the reply, I think I will get back to you via PM ๐Ÿ˜‰
ร—
ร—
  • Create New...