arjen
-
Posts
1,222 -
Joined
-
Last visited
-
Days Won
8
Posts posted by arjen
-
-
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.
- 4
-
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:
- FTP with TLS/SSL support
- Dynamically loading of ProcessWire bases on the current folder
I have sent a pull request.
- 3
-
http://wolfpie.co.uk/contact => very nice!
-
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.
- 1
-
The module you are using is pretty old (<2.4 support). An alternative might be to use CroppableImage. Read more about the 3.x release in this thread.
- 3
-
-
Join the club
- 3
-
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.
- 8
-
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} • </span>" . "{$feature->summary}</p>" . "</div>"; }
- 3
-
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} • </span>" . "{$feature->summary}</p>" . "</div>"; }
You can read more in the docs. On why you should use first() - or not.
- 4
-
No problem. I want to install this on several sites we are running. Looks like it has to be done this weekend. Will get back to you.
- 1
-
Hi @rastographics, this module won't work out of the box with PW 3.x. You need to do some changes to make it work. I don't know which one from memory, but I got a copy running locally at home. I might find some time tonight to update the code and send @rot the Pull Request I promised.
- 2
-
Question is: how to get it published again? I've just created an account, but can't find the request for publication button. There seems to be a way, but I can't find it.
-
I don't know why the ServicePages isn't in the modules database, but it is still available on github.
- 3
-
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.
- 2
-
The JSON import/export functionality Ryan is talking about is already in the admin. The buttons are located on the bottom side of the Fields and Templates page in the admin:
If you want to automate database migrations you could use the Migrations module by lostkobrakai. There are several other posts floating around dealing with this issue.
- 4
-
You need to enable the "use page numbers" checkbox on the template on which you want to pagination to be shown.
Could you clarify what you mean? You want pagination on the output of the children too?
-
When you need a simple count is it preferred to use: count("selector") versus $pages->find("selector")->count() since count("selector") method is way faster.
- 4
-
You are on the right track. You need to add some additional logic to your template. You can read more about pagination in ProcessWire here.
- 1
-
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.
Thanks @ryan, minor fixes like these really improve the overall user experience.
- 2
-
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.
-
Thanks mate. Appreciate it!
-
You do it manually or got a small bash script to handle the copying?
-
Thanks Can. I also don't have the config.php and assets folder version controlled. So you copy the config.php and contents of assets to your shared folder and then deploy?
☁️ Duplicator: Backup and move sites
in Module/Plugin Development
Posted
Thanks @flydev I think you are right about this. If you need any testing help, please let me know.