Jump to content

rjgamer

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by rjgamer

  1. Hello.

    2 years later I retested the case and still: The table of a field in the database does not get deleted.
    Why? And is there a clean up function?

    I've created a text field called "test", executed a few manipulations (added to template, saved text, etc.) and then I deleted it later on. But the table "field_test" ist still in the database.

    Thanks.

  2. Hi. Again me with a question.

    How does the migration of modules work with RockMigration? There is a watcher, but it only watches files and no database changes.

    Example: I've installed a new module installed with a few custom configurations on my dev environment (e.g. the Duplicator module). Now I want to have the module installed on prod environment too. Does RockMigrations with watcher really catch the module installation and configuration or what is the best way to do handle a new module installation and configuration?

    Thanks for your support, and no... I don't really need a first class VIP support video from @bernhard again. But you are free born of course๐Ÿ˜€

  3. Yes, but $input->post helps only when the data got send as FormData. But you can post data also as json in the body of request (fewer code in JavaScript).

    Native PHP example for reading them:

    // Takes raw data from the request
    $json = file_get_contents('php://input');
    
    // Converts it into a PHP object
    $data = json_decode($json);

    Looks like PW has no functions. So I will use the native solutions from PHP. No problem ๐Ÿ™‚

    • Like 2
  4. Hi,

    I've a few ajax calls from the frontend, which I handle in the _init.php file in the template folder.ย  The response is always json. The code works, but is there a "better" place for such code than in the _init.php?

    The functionality on my enviroment is some kind of signature/login validation which should be called on every page, idenified by a query param (e.g. /example/path?foo=1).

    Dummy example:

    if (input()->get('foo')) {
        
    	// do foo and response json 
    
    	$foo = [
    		'foo' => 'bar'
    	];
    
        header('Content-Type: application/json; charset=utf-8');
        echo json_encode($foo);
        exit;
    
    }
    
    if (input()->get('bar')) {
    
       	// do bar and response json 
    
    	$bar = [
    		'foo' => 'bar'
    	];
    
        header('Content-Type: application/json; charset=utf-8');
        echo json_encode($bar);
        exit;
    
    }

    Thanks.

  5. Hi,

    I've a simple echo output on the top of a template file. But ProcessWire outputs the echo 2 times. Does this mean the template file gets loaded 2 times? Or is there a misconfiguration on my side? I use markup regions as output strategy as you can seen with pw-id="content".

    Thanks for your support!

    image.png.524e02a0a906b97e7331a9f7dac51b9b.png

    ย 

    image.png.7def845fe2b920ad46ee87d6a1b83928.png

    image.png

  6. Hi.

    I have tried out RockMigration and have a few questions (and still dont get it, I how it should be implemented in a running website on dev and prod stages).

    I have a working website. Can I generate a fully migrate.php file or do I need to create it manually with the code hints of each field/template? Last one would be a real pain if there are many fields.

    If I have a field added and want to remove it later on in development process. Then how can I different the state of the field in the migrate.php? Top to down, first added and then removed in one run? But how would the migrate.php looks then?

    Are there any advanced examples of migrate.php for learning the basics and inspiration? Or advanced docs?

    Thanks.

  7. Hi,

    I've a field of FieldsetPage mapped with a few fields. E.g. If I now want to disable the "required" state of title I need to switch to the tab "Input" of the field mapped to the Fieldset. But when I click "Input" the page completely reloads and I'm landing on the admin site with the page tree.

    I'm using the latest version 3.0.210. Does anybody else have the same problem? It is a relatively plain installation. I just have RockMigration installed and uninstalled. And TinyMCE installed.

    image.png.7db6ecdc3adbe2a1e6275f3ad95f8361.png

    Thanks for your support!

  8. Hi,

    I am not happy with the limited features of the free comment module. Now I am thinking to buy the Form Builder Pro, but I am not sure if it can be use for custom comment system.

    Can anybody tell me more about the possibilities to create a custom comment system? Can I change the output of each input field for Bootstrap oriented stylings? And can I output the sent data in the frontend?

    Thanks.

  9. On 8/29/2017 at 9:25 PM, szabesz said:

    Additional tip related to displaying placeholder images:

    Above I just hard coded a placeholder image to be shown which might be all what someone needs. However, there are times when we want to let the editors change that picture or we just want it to show up in the admin too. In that case we can use ProcessWire's "Default value (when empty)" setting:

    placeholder-image.thumb.jpg.2d3eb16903b24207a5a719b1403b37a2.jpg

    Strange. There are no default value settings anymore in PW 3.0.181.

    Does anybody have the same issue?

  10. On 4/27/2021 at 5:43 AM, Kiwi Chris said:

    This module works well, but with Lister Pro and inline editing within the Lister Pro table, even with the check box to update on save for this module, file names aren't renamed, although opening via a full edit and saving does work.

    I suspect the issue might be the way Lister Pro works, ย but if it's possible to get this moduleย to work with inline editing mode in Lister Pro it would be handy.

    Looks like the same issue I have with page repeater. It would be really cool to get this supported.

ร—
ร—
  • Create New...