Jump to content

stanoliver

Members
  • Posts

    50
  • Joined

  • Last visited

Posts posted by stanoliver

  1. IS THIS A BUG IN PROCESSWIRE?

    Right above the custom json field in tinymce settings there is an area called "markup toggles"  containing a checkbox with 3 options to click.

    => It is not possible for me to uncheck one or all options because every time after saving and reloading the page again the before unchecked boxes are all checked again automatically. Even when I have no strict other filters activated at all.

  2. Thanks a lot @teppoand a Happy New Year to you and the community!  I will try out version 1.5.0 of the module soon but I am pretty sure it will rock anyways. To my second point about the missing stylings I also started to think it may is another problem not related to your module at all. 

    • Like 1
  3. On 12/8/2021 at 3:48 PM, adrian said:

    I have used it in the past and it works really well.

    Hi @adrian after reading the docs/the modules forum of Fieldtype Json I was pretty sure that module would be enough and installed without problems. If I am informed right then @Martijn Geerts stepped back from developing his module. I may ask you for help because you mentioned the module is working for you.

    Problem: Installation of Fieltype Json works fine and the settings page for the module I also found. Most setting options clicked seem to save just fine but if I copy-paste  some csv-text-content into the textareafield (csv-field) under settings nothing happens (I can not even see that text was inserted) when I click on save. Can you may help me?

    Alternative: which would help me too (in case you know a simple solution or some good links?

    I have a standard fieldtype file in my template and uploaded a csv-file. How can I make the content data of the csv-file visible in a different textareafield? In the next step I would like that if I change content in the visible textareafield and save it everything gets synchronised with the original uploaded csv-file in the file field.

    Idea: 2-way-synchronisation (maybe one way-sync could work too) between an pw file field/a single csv-file and a pw textarea field

    HAPPY CHRISTMAS!

  4. @teppoYes, in my specific case I just ask for a way to render the snippet on the front-end only for logged-in users. Thanks!

    I have already installed the latest version (1.4.0) and all works fine except two little things I could not accomplish yet (maybe because I do not understand or maybe not yet possible):

    1. I forgot to mention: "render all, logged in, or non-logged in is great" but it would be awesome to have "logged in user with a specific role", too.

    2. Problem: I have placed a snippet (just a little button with simple css and simple javascript) and when

    logged in as full admin => Button with default admin uikit styles and javascript modal works perfectly fine for me

    logged in as user => Button misses css styles and javascript modal not working (just some "dead" text visible)

  5. @adrian thanks for your advice! I also read about FieldtypeJson but I was irritated by the warnings "Alpha state", "

    To be fair, i've already set this module to be deleted 2 times, but somehow it won't delete.

    Better to go for other options like Kongondo's matrix field or use the Profields.

    There's big change that there will be Data loss when using this module as it relies heavily upon Javascript." and "Please us Matrix Fieldtype & Inputfield" from @kongondo. Do you guys @adrianand @kongondo think the following statement is right?

    Inputfield json is for beginners and easy tasks (like I described above) faster/easyier and more comfortable to use than Matrix Fieldtype which is to be fair probably way more powerful?

     

  6. Hi community!

    In the admin area we have the green save button (reno default uikit theme). I would like to add another button (or dropdown / or just an text slogan ...) before the save button.

    Just overwriting some less/css in not possible because the button does not even exist yet. So the question is how can I

    1. create the button: I think I have to copy the whole orginal admin.css and include it in admin.less where I can create this new button and its button class. Is there no simplier way?

    2. The new created button must be protected from automatic updates of processwire

  7. Hi @adrian,

    sometimes I have just stored some .csv-data in a normal processwire textarea field per copy-paste

    Nothing more than for example:

    id;name;age;
    1;Joe;34
    2;Jane;32

    So far so good. 

    Now I would like to do same thing (copy-paste these 3 lines of code into a textarea field) but this time these 3 lines should be "magicly" transformed into json and saved as json.

    Could you may implement it as an admin action? If not could may just tell me how I could transform it to json via php or javascript but as an simple standalone script. It's not possible for me to use an online csv-to-json converter.

    Hopefully my English was good enough

    Stan Oliver

  8. Hello Community!

    I found quite a  few ways or tools to style the admin or build a dashboard:

    - the new way with the .less compilation (reno style, rock style)

    - dashboard modules or tutorials how to build your own

    - admin on stereoids

    Vocabulary: With "admin like user" I do not mean a full admin but an user with quite a lot of priviledges ...

    My problem is that I do want to change the admin template for every (admin like) user in a different way. Or if I would build a bigger dashboard certain functionlity should only be available for a few (admin like) users but not for everyone.

    I would need different versions of the admin theme or the built dashboards for different admin users

    To start with a very simple example:

    Let's say I wanna give one (admin like) user a different background color (with css). 

    Let's say I wanna have an extra button or tab for some (admin like) user which another (admin like) user should not have

    How can I take advantage of processwire roles in all these examples I mentioned in the beginning?

     

     

  9. Hi @teppo thanks for your help! I finally found out what was wrong. My logs showed "Error: Exception: Unrecognized operator: +" and then I realized I had some "example code snippet" which was not fully commented out the right way and therefore caused problems. Before the update processwire was probably ignoring that failure but the newer version may not.

     

     

    • Like 1
  10.  Good morning @teppo! These problems are only appear at the front-end of the site.

    Also I should have mentioned more explicit that I really think that the problems are somehow related to htacess file(s) wich are causing problems.

    May you remember that @ryanmentioned 1-2 years ago updating to a new processwire version would require his new htacess file too. Ryan was explicitly mentioing it. At that point the trouble with my update problems started. I think the whole idea according to Ryan's post was (or still is) that if a htacess file is missing the later should get generated automaticly. At that time around two handful if not more htacess files got generated automaticly when I tried to update 1-2 years ago. At that time I could somehow get rid of that htacess files and everything seem to work fine until I wanted to update to a new version again. I did not change anything beside only replacing the wire folder.

    In case I am not phantasizing with my htacess story I hope you understand my point with the htacess file.

    Do you may know how I could kick out that mechanism (so that no htacess files get generated automaticly) because it only causes trouble in my installations?

    I also could find Ryan's post again:

     https://processwire.com/blog/posts/pw-3.0.135/

     

  11. Hello community!

    At the moment I am using pw version 3.0.148 and I have problems to update to newer versions.

    Problem: After replacing the old wire folder with the new wire folder it seems like parts of css styles are not working anymore.

    For example: I had two rows with each having 4 pictures side by side before the update

    After updating I have eight rows with just containing one picture per row

    The rest seems to work quite ok after updating. I also can see the new version number in the backend.

    That happend when I tried to update to the latest version number of pw which was released that weekend.

    The same problem occured in general when I tried to update to a version higher than 3.0.148 in the past too.

    I also remember that problem occured around the first time when Ryan pointed out the last time updating to a new pw version would also need to set a new .htacess (from that point on I think htacess files were automatically generated when no htacess file was found for security reasons) file in place. At that time I faced the first time layout problems when trying updating pw.

    PS I do not think it's a caching problem

     

     

  12. Yes, @rick your example is just fine. A simple form is all I need. I already got to work simple forms with text fields, attachment, "answer" mails ... to work. Just with radio buttons and check boxes I had problems, because I did not know how to sanitize the input through php or the processwire way. If I look at your example I only would still like to know how to sanitize your form with php/the processwire way.

    Thanks, for your help already.

  13. Hi @rick yes you are right and thanks for your clarification. It's not a big deal for me to use radio buttons or checkboxes in the frontend, especially there are a lot of frameworks for it. Could you just help me to provide some php code which validates a minimal checkbox/radio button form from the serverside with wiremail? I just do not know how to validate from serverside (sanitize the inputs of the form with php). 

  14. Thanks @bernhard for the link but there is still a problem for me, because:

    1. If use the examples of the provided link it works fine for sending an email with $m->... but I do not know how to save the pdf this way and therefore no pdf-file is attached

      If I use something like $pdf->save() I get a failure which tells me "... not allowed in this context ..."

    2. Could may provided just very basic example code how that

    $pdf->... in your module works together with $m->... you provided in the link above?

    All I need would be: A pdf created by RockPdf which gets send as an attachment by $m->... (the link you provided ... )

     

     

  15. Hi @bernhard "rockpdf" works just fine for my needs but I still have two little problems:

    1. I already have a little form with takes a few inputs (text values) which get nicely saved too when the pdf is generated and saved with "rockpdf" on the server sending me an email. I only do not know how to attach the output.pdf before submitting the email form. May you can help?

    2. Not so important right know for me but I also realized "$pdf->show() => does not work"  like @Ralf mentioned just above does not work for me either on a very minimal example.

  16. @mdaniel You do the right thing by exploring MarkupHTMLPurifier.modul or other modules in detail (good for learning ...). I have normally no time for such  (as long I do not really have to understand them for getting a better solution) explorations. I normally turn both filter (html purifier and ACF) just of and have no problems anymore.

×
×
  • Create New...