Jump to content

pwired

Members
  • Posts

    2,318
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by pwired

  1. Quote

     .... similar to WOrdFence WordPress plugin ....

    You need to get out of habitual thinking when comparing Processwire with Wordpress.
    From the beginning, Wordpress was never made for 1) websites 2) safety.
    And so, all through the years tons of spaghetti plugins were made for Wordpress to make things work.
    Processwire has a completely different Architecture because it is made both a cms and a cmf
    with safety in mind to make websites and apps without the need for essential plugins.

     

    • Like 4
  2. Quote

    how to better understand ckeditor and it's docs?

    Yes I fully agree with that. The CKEditor is used by many in Processwire -
    and keeps having returning questions about cumbersome to find configurations -
    we should setup a central place to first collect the useful configuration finds
    that are now spread over the forum, and then make them for all easy available.
    For the love of processwire I will start with this in the coming weekend. 

    • Thanks 2
  3. Like it or not but when reading both posts, to me Ryan clears it objective and Moritz brings it subjective.
    Processwire can hardly be labeled or compared with established cms systems out there because Processwire
    gives almost unlimited -never seen before- freedom in how to use it. Only recognizing this unlimited freedom
    to a certain level, because of habitual coding and thinking learned from other systems can bring up
    such comparisons.

     

     

    • Like 1
  4. Quote

    I also still build websites traditional way, depending on the project, and needs. If I need a CMS and more advanced features, using pw, if need a more basic website, then trying to use SSG. Usually without cms, content in markdown… Just started with SSG sites, but planning to move to it as much as I can.

    • Don’t have to keep your front-end files on the same server
    • Easier to deploy websites (static sites, SPA). You can deploy your website to github, netlify, cloudflare pages… no server needed
    • Easy to build multi websites with one backend
    • Easier to collaborate via git
    • Easier to share data between websites
    • Tooling, preprocessor parsers, purge css, live reload etc…
    • Easier to switch front-end entirely, eg: change front-end framework, change static site generator…

    Is SSG not mostly being used by coders, git-users, documentation, etc. ? Is SSG really something to use for a client website ?

    • Like 2
  5. With all respect to the beautiful website .... but the domain name ?
    I have seen a lot of domain names but never something like this.
    Think of Visitors outside of Brazil and who is going to memorize
    something like arbynatashamarques ? Even on a business card it would
    look kind of absurd. A domain name should be short, easy to memorize
    and recognizable for a brand, a service, a product, etc. etc.
    But maybe this is just me.

     

    • Like 2
  6. Quote

    making sure he keeps the current community he already has is vital to ProcessWire . . . .

    Remember the years before and after the evo exodus to processwire ? The forum was vibrant and full with
    starting-coders and beginners and for a long time the forum was praised for fast replying and helping them out.

    Processwire has already lost almost all starting-coders and beginners like we used to have them in the past.

    I asked the forum a few times if there is interest in getting them back but without any reaction.
    A clear indication.

    Processwire is already a fantastic and full grown product so spend less time with adding weekly new xyz features
    and instead start spending more time with Marketing the potential of this great product.

    No secret that this is not going to happen because with Processwire, Ryan is only interested in coding
    and is followed by a lot of coders a like in the forum.

    Another suggestion to make the community grow is to split Processwire up in 2 versions:
    1) a version for starting coders and beginners like it was in the beginning
    2) a version for experienced coders like we have today

    Last but not least: maybe I should not complain about anything
    and just take Processwire for what it is and be happy with it.

     

    • Like 1
  7. Bumping this thread

    If you cannot add extra input fields and labels to the core Comments Form to expand on it, for example Surname, Country, Month, Year, or any other custom field/label, etc etc then what is the use of having it in this limited way in the core ?

    Would like to know who is using the core Comments fieldtype in Processwire and in what way, purpose ?

     

  8. With fbg13's jump start code, now it is easy to add some extra code and formatting
    and make a working form example out of it.

    1) Add <?php namespace ProcessWire; on the top of your template to prevent error Class "Page" not found
    2) Add action="./" to the form
    3) Add labels and a <textarea> section to the form
    4) Change the default named submit button into something custom e.g. Send

    <?php
    namespace ProcessWire;
    
    if($input->post->submit) {
    	$p = new Page();
        $p->of(false);
    	$p->template = "test";  // template_to_save_form
    	$p->parent = $pages->get("/test/");
    	$p->title = $input->post->name . " - " . date("Y-m-d");
    	$p->fullname_txt = $input->post->name;
    	$p->message_txa = $input->post->message;
    	$p->save();
    }
    
    ?>

    And the form

    <form action="./" method="post">
      <label for="fname">Full name:</label><br>
      <input type="text" name="name"><br>
      <label for="message">Message:</label><br>
      <textarea name="message" rows="5" cols="20"></textarea><br>
      <input type="submit" name="submit" value="Send">
    </form>

     

    Enter a name, a message and hit the send button a few times
    and see magically grow the number of child pages holding
    the entered form data.

    Now you can further process the form data like showing a success page
    and emailing the form data.

     

     

     

     

  9. Things that I came across about creating/editing pages with the api:

    1) Set output formatting state off, for page manipulation
    $page->of(false);

    2) First save page in preparation for adding files e.g. an image
    $p->save();

    So allow me to add 1) here to improve the above example code:

    <?php
    
    if($input->post->submit) {
    	$p = new Page();
        $p->of(false);
    	$p->template = "template_to_save_form";
    	$p->parent = $pages->get("/parent-page/");
    	$p->title = $input->post->name . " - " . date("Y-m-d");
    	$p->submitted_by = $input->post->name;
    	$p->message = $input->post->message;
    	$p->save();
    }

     

    • Like 1
×
×
  • Create New...