Recently Browsing 0 members
No registered users viewing this page.
Unfortunately I came across another problem.
I have a "regular" ProcessWire setup and want to create a separate php script. That script should be executed by a cron job and is bootstrapped with my PW setup. Main goal is to send mails which are stored in a email field.
My problem: I want to access a specific field from a template where only specific users have access to. Right now, the cron job is executed as "guest", of course.
How can I bypass this restriction, so that I have access to that specific field (it's only one email field)?
Does it make sense to set current user via api?
Hope you can help me out there.
There you can download the module : https://modules.processwire.com/modules/duplicator/
I was not aware of this module/topic and spend some time developing a module to backup, clone and move sites to a local folder or even GoogleDrive and Dropbox.
The idea begun when I read about this Wordpress's plugin. I was planning to add features like s/FTP, Amazon Cloud, deployment installer and others great features from Wordpress Duplicator and release it for free to the community.
Now that I see this @rot's module , I am wondering if it would be benefit to the community to have a second solution and so, if I should finish it.. ?
Features / Wishlist :
Save package to local folder : implemented Save package to Amazon AWS : implemented Save package to Dropbox : implemented Save package to GoogleDrive : implemented Save package to FTP/FTPS : implemented Manual backup with a standalone button : implemented Backup from scheduled cron job : implemented Exclude by file extension / filename / directory : implemented File naming convention (Y-m-d_H-i-s-description.ext) implemented Protect access to the module screen by role/user implemented Installer / deployment functionality implemented ---
2017-02-07: Starting the CLOSED BETA TESTING.
2017-11-28: Module release - version 0.0.44 at https://github.com/flydev-fr/Duplicator
I'm trying to echo a field from another page, in my footer. I have a Website Settings page (id 1006) with several fields for general site settings, like store hours (field is named store_hours). In the footer, I have this:
<?php $settingsPage = $pages->get(1006); echo $settingsPage->store_hours; ?> Shouldn't that output the contents of that field? Right now it's printing a "0" (zero) on the page.
Elsewhere in the same footer template file, I have this code and it works fine:
<?php $homepage = $pages->get(1); echo $homepage->body; ?> Does it have anything to do with the fact that the field is organized into one of these tabs, at the top of the page editor?
(disclaimer: I'm new to PW, and have inherited this site from another developer; that's why I don't know how or why some of this stuff is set up the way it is).
Yesterday I found out about the relatively new markup regions functionality and I love it. The ease of use and simplicity is just what I think is typically ProcessWire and is why Im still happy I chose for PW four years ago when changing CMS/CMF. So thanks Ryan for your vision and all you put into it.
That said, Im running into an issue I'm not sure what to think of it.
I have enabled markup regions in config.php and it does what I suppose it should: it replaced and all. Very neatly.
The only thing I discovered is that while Im debugging some issues and I use var_dump to echo some stuff, it does that two times in a row. And this only happens when useMarkupRegions is enabled.
I dont get this, does it mean the template file gets called twice (and thus the script is run twice?) or is it only displayed twice, where the first time most output is erased and /or replaced by the substituted output?
I don't really get whats going on there. Is this behavior normal when using markup regions?