Jump to content

tpr

Members
  • Posts

    2,321
  • Joined

  • Last visited

  • Days Won

    44

Posts posted by tpr

  1. On 3/1/2022 at 8:36 PM, Ivan Gretsky said:

    I wish we could bring back @tpr to support his AOS

    Thanks but unfortunately I don't see that happening, and it's not about the donations. I'm working with .NET for at least about 3 years now as the backend, and Angular/Next.js/etc for the frontend, all these on a corporate laptop. My own old laptop where I have PHP is now slow as hell, I boot it up only a few times a year. This "setup" makes it very inconvenient to maintain AOS, and I'm completely out of what's happening with PW and PHP lately, which complicates things even more.

    • Like 2
    • Sad 5
  2. On a ML site I couldn't reproduce this (PW 3.0.123). I have no idea what could cause this and unfortunately I haven't touched AOS recently and unfortunately I have no time to investigate ? Perhaps it's because of a newer PW version or perhaps something in your languages setup (naming?), but that's only shooting in the dark.

  3. 11 hours ago, MaierGrem said:

    @tpr, could you add the option "use custom fields width" to the Uikit Tweaks section? When this option is enabled, the css file should be added after uikit in which there will be classes in the format:

    You can pull in a custom CSS (see AssetPaths), where you can add anything you want.

    • Like 1
  4. On 5/1/2020 at 12:00 AM, bernhard said:

    Do you have the same limitation in your approach?

    Sorry for the delay - apparently no, I set the allowed extensions to "svg" and a "png" file wasn't accepted (even when setting field "Closed + Load only when opened (AJAX) †"):

    [Allow SVG only for field 'images']
    ?field = "images"
    extensions = "svg"

     

  5. You would just need to add test files to your module, not the whole testing module. You or someone who is interested could install the tester module and run the tests. I can think of data saving and retrieval tests that could be tested on the backend.

    Frontend (e2e) testing us another thing, I used Cypress a few times but there are many other available. With Cypress it is easy to simulate user inputs and interactions. I can spend some time to set up a simple test if you wish, so you could use that as a base. But it is easy enough to just get started with the official docs.

    • Like 1
  6. Not my business (and no offence) but have you considered adding unit tests (there is none in the repo)? This is a sensitive area where accuracy is crucial, tests could improve the overall quality a lot. I can recommend ProcessNetteTester if you don't have any other preferred.

    In general tests for user supplied modules in PW are very rare (perhaps close to zero as I know, including my own modules), although it would be a sign of quality if there were some conditions to only accept modules with tests to the modules directory.

    • Like 1
  7. 4 hours ago, wbmnfktr said:

    I saw in total 2 cars on the streets and 8 people in total in the supermarket and on the streets combined

    Try pulling your mask bit lower ?

    • Haha 1
  8. The naming of "has" sounds a bit unintuitive to me as well, since it involves getting a true/false, so it can lead to confusion when reading the code where the returned id is used.

    Maybe something like this? (somewhat similarly to the C# TryGetValue())

    $pages->tryGetId(selector);

    • Like 2
  9. I usually supplied "translation keys" instead of the default translation to translation functions, and translated them in all languages, eg. __('btn_submit') instead of __('Submit'). This way they rarely needed to be changed, only when the translation changed to something completely different.

    • Like 4
    • Thanks 1
  10. Glad it helped. I know it can be a powerful feature even though I haven't had a chance to use too much.

    You may also take the relatively new built-in extended template overrides into account (available when $config->advanced = true). But that would need another template to use so AOS is more flexible.

  11. On 2/13/2020 at 3:57 PM, Klenkes said:

    Well it doesn't work, because ACF and Purifier are not plugins...

    Sure, because they are field settings.

    This feature wasn't tested and used too many times (by myself) but when I opened a local PW site I usually use for testing, the following was filled int he FieldOverrides textarea in AOS:

    [Enable any markup in any CKEditor]
    ?field = "inputfieldClass=InputfieldCKEditor"
    useACF = 0
    usePurifier = 0

    Apparently it works, but it's important to know how. AOS is loaded in the admin only, so if you override a field like this, you won't see useACF=0 if you dump the field settings in the frontend (eg. with Tracy). But in the admin the value is overriden, so you can add any markup and it will be saved to the DB. On the contrary, if you decide to remove this override later on, the data won't be changed in the DB automatically unless you re-save the page again.

    • Like 2
  12. There's no harm but then I would have to modify the current submodule toggle (and role setting) behavior. The idea was to enable/disable a submodule in the top section and hide the corresponding settings section below.

    If I would remove the "show if" conditionals to show all settings, one wouln't know whether the submodule he is configuring is enabled or not (without scrolling to the top to check). Perhaps the easier solution would be to add some kind of text or icon to indicate the on/off state.

     

×
×
  • Create New...