Jump to content

arjen

Members
  • Posts

    1,222
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by arjen

  1. Hey flydev,

    Looks great. How far have you developed this?

    The other module is at the very least beta software. I've got it running on several websites and it is running quite fast and smoothly. On the other hand I think there could be improvements. Perhaps you could join forces? Your modules both have the same goal. If you need help, I'm happy to help in any way.

    • Like 4
  2. So, finally got some time to get back to setting up new backup services and it turns out from > 3.0.42 (latest stable) fixes the Filecompiler issues ;) I think Ryan made some changes regarding the file compiler a while ago. 

    For now I've changed:

    1. FTP with TLS/SSL support
    2. Dynamically loading of ProcessWire bases on the current folder

    I have sent a pull request. 

    • Like 3
  3. Harmen, 

    I've used TransIP before and I only had to change the .htaccess:

    Options +FollowSymLinks 

    to

    # Options +FollowSymLinks

    If you have modified the .htaccess, I suggest you try a clean .htaccess from the ProcessWire github repo and apply the above change.

    • Like 1
  4. You can use wireshell as well. This is really handy. Just give the following command and grab a coffee ;)

    wireshell page:emptytrash

    I'm not really sure if it will delete everything in one run, but I deleted 60k pages the other day without problems. Really fast too and the main advantage is that you are not tied to a PHP session.

    • Like 8
  5. We didn't define the $image variable. How about this?

    <?php
    
    $features = $pages->find("template=newsitem, limit=3, sort=-date");
    
    foreach($features as $feature) {
    	$img = $feature->image->size(320, 180)->url;
    	echo "
    		<div class='column is-4' >" .
    			"<img src='$img' alt='' />" .
    			"<h3 class='title is-4'><a href='{$feature->url}'>{$feature->title}</a></h3>" .
    			"<p><span class='date'>{$feature->date} &nbsp; &bull; </span>" .
    			"{$feature->summary}</p>" .
    		"</div>";
    }
    • Like 3
  6. This should work:

    <?php
    
    $features = $pages->find("template=newsitem, limit=3, sort=-date");
    
    foreach($features as $feature) {
    	$img = $image->first()->size(320, 180)->url;
    	echo "
    		<div class='column is-4' >" .
    			"<img src='$img' alt='' />" .
    			"<h3 class='title is-4'><a href='{$feature->url}'>{$feature->title}</a></h3>" .
    			"<p><span class='date'>{$feature->date} &nbsp; &bull; </span>" .
    			"{$feature->summary}</p>" .
    		"</div>";
    }

    You can read more in the docs. On why you should use first() - or not.

    • Like 4
  7. 3 hours ago, rot said:

    It would be a waste if it works fine and others don't find it.

    Definitely. I was looking for something else in the forum and stumbled upon your module. It does exactly what another backup script (PHPBU) is doing, but now from within the admin panel.

    • Like 2
  8. On 4/1/2016 at 8:52 AM, arjen said:

    It would be great if we could enter the new template name directly before duplicating. So the template and field duplication process are equal.

    It wasn't there in 3.0.15, but it is in (at least) 3.0.39. 

    improv.gif

    Thanks @ryan, minor fixes like these really improve the overall user experience.

    • Like 2
  9. Hi @rot,

    Thanks for this module. Are you still using this? I'm wondering because I couldn't find it in the module repository.

    It works really great. I've got some minor fixes (i.e. errors on 3.x due to namespaces, errors since my PW install is in a sub-folder) for which I will send a Pull Request.

×
×
  • Create New...