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.
I like the Reno wrapper for the admin. After looking at UIKit, then switching back to Reno, the back end is all Reno but the basic back end login page /processwire or /whateveryoucallit is displaying the original Default instead of the Reno login. I realize this is a first world problem, but I can't seem to reinstate the Reno login. Tried installing/uninstalling... It's not the same page code and it's not the same style sheets... I can't uninstall the default ...what am I doing wrong?
Since googling "free processwire themes" does not bring up results, I release my former website template open source! In the hope that it will help many people to get started with Processwire - or just to simply test it.
PW-Featured here: http://processwire.com/about/sites/list/memelpower-we-create-business-websites/
Free Processwire Template
Free Processwire Template - built for a web development agency - now open sourced.
Online at web archive (some images missing but working): https://web.archive.org/web/20171028072758/https://www.memelpower.com/
See also folder demos/screenshots.
Copy all files to your webserver. Create a database and import the file database/db_import.sql Edit the file wire/config.php and enter your database credentials. Go to yoursite.com/wire/ and login. Login: admin and Password: herewegocheckitout22 The template you find in site/templates
Copyright of Images by Kai Noack. If you use the template you MUST replace or remove all images of people and organisations. The logos used are also copyright protected.
If you like what you received, you can show your appreciation by a donation: https://www.paypal.me/q2apro
The source code of the template is free and open source. Do whatever you like with it.
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?