Jump to content


lpa

Member Since 23 Feb 2012
Online Last Active Today, 11:54 PM
-----

Topics I've Started

Enable debug mode for only superusers or a given username

14 May 2013 - 03:29 PM

Why couldn't I use this in a template:

 

 

if ($user->name == 'admin') {
        $config->debug = true;
}
 
or 
 
if ($user->isSuperuser()) {
        $config->debug = true;
}
 
 
 

Moving pages hanging

18 March 2013 - 05:28 AM

I have a problem when moving pages in the page tree. I can move the page, but after dropping the page to the new position the triangle at the end of the page keeps moving and I can't continue editing the pages. After reloading the page the moved page appears in the new position and I can continue with edits. 

 

What might cause the hang?

 

 


Problem with command line scripts

08 February 2013 - 05:25 PM

Trying just this:

 

 

#!/usr/bin/php
<?php
include("./index.php");
echo 'here we go';
 
I get this error:
 
Error Exception: DB connect error 2002 - No such file or directory (in /Library/WebServer/Documents/pw22/wire/core/ProcessWire.php line 95)
 
I am on Mac OS X 10.6 with PW 2.2.9. 
 
I don't understand what goes wrong?
 
Lauri
 

All the RSS item fields to MarkupRSS

05 February 2013 - 02:08 AM

Hi

 

I would have a need to use the category field of the RSS feed items defined in the RSS 2.0 specification (http://www.rssboard....mentsOfLtitemgt). How difficult would it be to have all the item elements defined in the RSS Feed Generator module of PW?

 

Regars,

Lauri