Jump to content

qtguru

Members
  • Posts

    356
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by qtguru

  1. 11 hours ago, fractalflux said:

    Hi Everyone

    Today i have been looking into using Processwire and i am impressed with what i have been reading about it.

    I create my own sites for fun and have been using Joomla for some years but i have decided to change CMS for quite a few reasons including the fact that i would like a lot more flexibilty from a CMS which is why Processwire has caught my attention.

    I am more a designer than developer at the moment and i can code in HTML, CSS and a little PHP. I would like to learn more about the dev side of things so am happy to invest the time in learning this CMS.

    My questions is:

    Do you think that it would be a reasonable idea to learn to use processwire for creating and running my own few sites or would it be overkill?

     

    Thanks for your time

    Fractalflux

     

    I can guarantee you you will find PW easier than Joomla, I used to code in Joomla 

    • Like 4
  2. 3 minutes ago, benbyf said:

    Ive got some bits here: https://benbyford.com/works/?f=games

    and here: https://benbyford.com/experiments/?f=games

    Haven't done lots of game stuff yet commerically, and I'm mainly focused on 2d games as 3d requires TIMEEEEEEEEE and money, and i think im just more interested in 2d

    lol was already on your website the moment i saw Unity, and I like the experiments you have, yes It takes time and money , I realized this while trying to take up 3D Modelling in Blender, I gave up due to other projects, but am opening to free up time for this, lovely personal website by the way. 

    • Like 2
  3. 14 minutes ago, benbyf said:
    • making games on Unity3d
    • trying to find work from other web designers and clients
    • playing with my baby
    • going through the long list of backlog tasks and personal projects to see if i have the time/money to start any (usually games, code learning, or writing)

    I have interest in 3D however it's WebGL am planning to start with using BabylonJS ,GameDev and Emulating are my hobbies and what interest me, I hope you share this journey on your blog, i'd be interested to read. 

    • Like 1
  4. It's been a while since i have update this spot, so you know the usual story, Client builds app in WordPress, work is contracted to me, I feel angry and convert to Processwire and Client is pleased, but now I realized StreetView is a necessary requirement for the project which means, I need to create a StreetView Field for Processwire, if this is already in works please let me know if not, this means I might be creating one and writing an article around it, I won't mind articles to detailed information about creating Fields. 

    Have a nice day 

  5. 2 hours ago, FrancisChung said:

    If it's any consolation, it's not that great in PHPStorm either. I think I will setup a similar forum topic for PHPStorm users to vent their frustrations and workarounds.

    You PHP Intellisense for PW isn't great or PHP Intellisense in General because I use it for Symfony and Yii2 and it's superb but a memory hogger. Netbeans still tops it all in terms of speed for me. 

    • Like 1
  6. 1 minute ago, bernhard said:

    robin, you are right. but his wordpress example is also a simplified "sitemap" only showing all pages on the site (if i understand this weird wordpress code correctly ;):D )

    the equivalent in PW would be something like this:

    
    foreach($pages->find('has_parent=1, has_parent!=2') as $p) {
        echo "<h1>{$p->title}</h1>";
        echo $p->body;
    };

    edit: this would mess up the sort, but i think the wordpress example is also not a proper real-life example so it should be a valid comparison...

    Not a sitemap, I meant all posts on a site, WordPress doesn't have the concept of Post having another post as a child compared to WordPress. But now that i think of it, I don't think i could write a sitemap in WP :D 

  7. 2 minutes ago, Robin S said:

    Yeah, but it's a little bit trickier than what you have shown.

    
    $pagesList= $pages->get("/");
    foreach($pagesList as $page){
    
    }

    If you do this, $pagesList is just the Home page by itself - it isn't a PageArray you can loop over to get all the pages in your site.

    For a full listing of pages you actually need to use a recursive function like Ryan's example here:

    Just wanted to point this out in case a beginner actually tried to use your example.

    Damn yeah $pages->get("/") fetches a page while the children method from it is the PageArray. thanks I will update

  8. On 10/10/2017 at 9:57 AM, svsmailus said:

    Thanks for the thoughtful response. 

    I would be intrigued to know a comparison, that if two people started from zero knowledge, whether learning Processwire would be any more difficult than learning Wordpress? One of the things that has attracted me to Processwire is that the forum is full of people who actually enjoy using it! The last time I enjoyed creating a website was in 2005 where I hand coded the site. Although Wordpress is ubiquitous, I don't meet too many people who seem to enjoy developing on that platform and I certainly do not. In the end I find that if I want to do anything well, it requires an investment of time. I'm hoping my investment into PHP and Processwire will give me back the enjoyment I had of developing websites.

    Note: 100% Honesty no Bias

    I would say it takes much more to develop in WordPress than in Processwire, I will backup my claim with code examples and also various scenarios, before I came into Processwire, I was developing WordPress and really with minimal code , you can do alot in Processwire. Let's look at this now

    Scenario 1

    Fetch Images for a specific Post

    This is how to do this in WordPress

    $thumb_ID = get_post_thumbnail_id( $post->ID );
    
    if ( $images = get_posts(array(
    		'post_parent' => $post->ID,
    		'post_type' => 'attachment',
    		'numberposts' => -1,
    		'orderby'        => 'title',
    		'order'           => 'ASC',
    		'post_mime_type' => 'image',
    		'exclude' => $thumb_ID,
    		)))
    	{
    		foreach( $images as $image ) {

    and this is the equivalent in Processwire

    foreach($page->images as $image){
    
    }

    You see the concept in Processwire is that everything is a page, so when you are in a Page, you get the neccessary information required for that page, However WordPress has a "Post Concept" and images are tied to the Media Library which is why you have to supply a post to fetch images.

     

    Scenario 2

    List all Pages on the Site

    Now imagine you are looking to create a list of all your pages, this is what you will do in WordPress

     <?php
    
        /*pass your search string here example like this ( 's'=>'test' ) */
       $args=array('s'=>'test','order'=> 'DESC', 'posts_per_page'=>get_option('posts_per_page'));
    
       $query=new WP_Query($args);
    
        if( $query->have_posts()): 
    
        while( $query->have_posts()): $query->the_post();
    
         {
         echo $post->post_title;
         echo $post->post_content;
         }
    
        endwhile; 
        else:
        endif;
      ?>

    Now this is the same result in Processwire

    $pagesList= $pages->get("/");
    foreach($pagesList as $page){
    
    }

    Minimal PHP Knowledge and beautiful design, I can guarantee you within a week's practice you will be able to deliver something quicker, however some tasks might require additional time, but Processwire has been carefully designed to appeal to people, at a point I wasn't happy when it wasn't adopting Advanced concepts (FIG,PSR) but as I evolved i realized there's more to coding and that user adoption is important. Now let's forget the code let's look at Content management

    Now you want to create Website and let's assume in your case, it's a website about selling Boats (sorry :) that's what to mind), Out of the box for WordPress, unless you are creating a custom type, you can't fit that logic into WordPress as it's built around Posts and taxonomy, so you have to create a custom type and this involves codes, or install a plugin, whereas in Processwire you simply create a Page which holds Boat informations and create fields to accept relevant information. 

    image.thumb.png.35aa61202e5f0bd730000011be57f835.png

    This is much more intuitive than WordPress, because in WordPress you might have to add it as a custom field which obviously involves coding again, or as usual checking to see if such a plugin exists, or the last option is to pray that someone builds a theme that involves selling of boats.

    Image result for wordpress post backend custom field

    Now this is the custom field in WordPress, however by default most of the custom fields in WordPress are Text input, during my previous experience creating a custom field other than text involves coding and obviously you know what comes next; installing a plugin again for another need.

    WordPress takes a lot of time, money and also very nerve wrecking, updating WordPress or the plugin is like russian roulette to me, I have to backup, and pray for the best, It's moments like this that I become very religious. And if something breaks I either have to fix the issue or revert, and sometimes the reason you are updating is because of security issues, so it's either breaking the site or getting hacked. Which means additional money for consultancy and it gets messier from there. I've been there and done that and I simply decided to migrate to another platform as WP wasn't worth my sanity. Processwire is good and the modules built are easy to use and configure, my favourite is the DatabaseBackUp without thinking too much you can easily understand your way around.

    image.thumb.png.f92b814b9d81144ca79fdce4ac3ab60f.png

     

    In conclusion Processwire is good and easy to grasp, it might not be perfect and that's a good thing because it means there's room for improvement, and we are even lucky to have you around, as you can share how we can make Processwire more user centric and easy to use and also features can be created in modules to make PW a more robust system.

    I will link @Joss article 

     

    TLDR: Processwire is easy to learn.

    • Like 10
    • Thanks 1
  9. On 10/2/2017 at 6:31 PM, svsmailus said:

    I've been involved in web design since 1995. However, I'm not a coder although I do know html/css and in the early days hand-coded sites. I then moved onto to Frontpage, then dreamweaver and finally created sites with Wordpress and also Rapidweaver. I know Wordpress extremely well, however, it is a headache. Updates, plugins and stopping hacks is becoming a drain on maintenance. So I'm looking to switch platforms and processwire was recommended. However, having installed a test site using MAMP, it seems the learning curve is pretty steep. As an example trying to set up the blog module ended with eveythings set up, but the blog displays as a blank page. It makes me realise that Processwire could easily become a time-sink that will require lots of time to try and do what you want to and there seem to be few tutorials that help you set up what you need.

    Is Processwire a good fit for non-coders or would you suggest I look elsewhere before I invest too much time and get nowhere?

    I've stuck with Wordpress for ten years and it has served me well, but Processwire failed for me at the first hurdle and that was in trying to set up a simple blog. If I have to spend days to set up a blog, gallery, insert videos, create rss feeds and create podcasts, I'd rather know now from experienced users that maybe I'm barking up the wrong tree.

    many thanks

    Simon

    Your know your topic had me thinking, can a non-coder use Processwire and actually setup a lot of things on the go, I had to think deeply about this, because I'm highly technical and know my way around, but to be honest It would take some effort compared to WordPress (in terms of adding additional features),  I don't think you can *easily* do that with Processwire, and this is where 3rd Party Modules Developers come in, Modules have to developed with user in focus so that users can easily configure and tweak settings without needing to touch the code, which is always what WordPress has going, it's why users find WP a haven and not developers, Processwire has a developer-esque to it in some ways. I would because Processwire is a CMF which is why, the developer presence might feel strong but unlike other CMS (Bolt,Backbee CMS, ImpressPages , Silverstripe, Concrete 5 and October CMS) I would say this is the most friendliest you can feel comfortable with, a basic knowledge of PHP is all that is required. WordPress is just.................................. don't even want to talk about it, I am currently handling a WordPress project, and am this close to picking diving in front of a bus than working on the project :'( 

    • Like 2
  10. On 3/10/2017 at 10:41 PM, jmartsch said:

    Thank you for this great article. It should be in the official ProcessWire Docs.

    Thanks I didn't even see this comment, I had plains of re-writing, I think i went too far going with something too complex without best practice so working to change the tutorial to start with something small like fetching API from Reddit to build a widget. 

  11. 2 hours ago, bmacnaughton said:

    I'm starting a project using vuejs and ProcessWire. I'm running into a number of questions and am hoping someone has gone down this path before.

     

    1. I'm not sure which way to go: create a vuejs single-page-app or just create components and serve them from PW.

    2. Vuejs components naturally tend to contain UI text - how do you handle about localization in that context. I like PW's localization capabilities and would prefer not to have two different systems. Is there some way to have components load all their user-visible text at runtime? I guess PW could create Vue.js apps that pass all the props to a given component when it is invoked, but that seems a bit messy.

    3. Should I think about server-side-rendering or serving webpack units to the client?

    4. For development, I am using webpack-dev-server and proxy API calls to another server (initially express as a mock but it will be PW) in webpack.config.js. Does this make sense?

    As you can tell, I'm just getting started on this so any help is appreciated.

    Hi I am going to be honest I have used both but not as extensive as you have, If you are going to use VueJS via SPA, then it won't matter whether you use Processwire as you would simply be concerned about your JSON Data, which any API/Service can equally play that role. As for your webpack-dev-server i don't think it matters as SPA is only concerned about the data, meaning Express, Golang,Spring can easily serve the JSON and it won't make any difference, as for SSR am gonna be honest am still not sure what SSR really is, Maybe i should read more detailed articles on it. all the best, I would simply advise to using VueJS as components for your pages. But it depends on your aim though 

    • Like 1
  12. On 3/1/2017 at 11:52 PM, adrian said:

    I would also love to see this - I think it would be great if we could define it in a Github repo changelog.md file and have the automatically imported into the text in the modules directory, and perhaps even displayed in the module info within a PW install. Perhaps it would even be nice to have a way to add a flag about breaking changes that would show up in the ProcessWire Upgrades module so you are warned before upgrading.

    @ryan - any thoughts on this? I'd be happy to work on it - obviously I could do the PW side of it from the repo, but would need access to the php files for the modules directory to make that side of things work.

    I thought of a concept and it doesn't have to be as complex infact here's my proposition

    There should be a changelog.md and also another changelog.json which contains each version and the text serving as the changes, however this might hard to implement as it means enforcing everyone to do this, another better alternative could be a changelog.md with a specific format to follow, so that a Parser can be read to extract the needed information, it is vital a changelog is seen before uploading to inform user about what has changed and what to expect. 

    • Like 3
  13. 17 minutes ago, Sérgio said:

    So I think is a good idea to import the data as PW pages and using a cron job or manually import only the fields that changed on a daily update and import new items if not created already. 

    As long as he's not the owner of the source i don't think it's proper to create pages for the feeds that would change over-time, the only thing I can say is too fetch the XML Feeds and create a Cache for that maybe like 1 hour, to save speed. 

  14. 18 hours ago, Wanze said:

    Could you explain the reason? I'm interested because I know smarty from earlier and didn't use twig so far, my impression is that they are both similar in most areas. Good thing about using the template engine factory is that you can now replace your smarty templates with twig templates, without touching any code in the controllers :) 

    The major difference for me is the how detailed it is for me to write Twig Extensions, especially in OOP manner asides that they are quite similar. 

    • Like 1
×
×
  • Create New...