-
Posts
7,479 -
Joined
-
Last visited
-
Days Won
146
Everything posted by kongondo
-
@horst....Raymond is quoting what Ryan said. That was a typo (I believe, by Ryan), although he did it twice, which is baffling. See the post here:
-
Like Soma "said" - it will enforce decoding to array rather than the default PHP decoding which returns an object. So, it will save you typing "true" https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/Functions.php#L160
-
That was my impression...but I read his sentence again: "It may well be our next CMS!" Who'll go out there and talk for PW?
-
Setup a ProcessWire environment on a fresh MacOS X install
kongondo replied to Martijn Geerts's topic in Tutorials
One...you can easily upgrade your software version (e.g. PHP) without waiting for MAMP to upgrade...But am lazy...so I still use XAMPP Martjin. Thanks for this write-up! Very helpful not only for MAC users, but the ideas are applicable to other environments too. -
Thanks for sharing Chrizz. Looking good! One minor issue, the contact form, looks a bit cramped? The labels and fields and too close to each other. I am on G. Chrome. I like the photos, especially the monochrome ones.
-
Note that by default, the function json_decode() returns an object. If you try to foreach that you will get an error like "Fatal error: Cannot use object of type stdClass as array in...". So, you need to use the 2nd parameter of the function to return an array..e.g. $array = json_decode($jsonstring, true) http://php.net/manual/en/function.json-decode.php Having said that, your json string above results in a deeply nested array (multi-dimensional) which can be a pain to traverse....unless you know about stuff like these Even Better... http://php.net/manual/en/spl.iterators.php http://stackoverflow.com/questions/5524227/php-foreach-with-arrays-within-arrays/5524267 http://www.phpro.org/tutorials/Introduction-to-SPL.html http://www.sitepoint.com/using-spl-iterators-1/ http://codepad.org/A68lcnLZ [demo]
-
Sorry @Horst, I beat you to it
-
Like those shown here... http://processwire.com/talk/topic/5640-shortest-way-to-echo-a-field-only-if-populated/
-
Turn debug off and they won't show...but that may not be an option for a developer ;-)
-
1. It is the translation source. See here and here 2. Is that because the new admin theme is a module? //Silly me; but other modules are working, duh! 2. It's not loading the new admin theme css files...why, I don't know...
-
Hide Process Module custom admin pages for certain role
kongondo replied to Roope's topic in General Support
That was my thinking too but wasn't sure what your use case was...Glad you sorted it out.. -
drag and drop fields in a template does nothing?
kongondo replied to gyaani's topic in Getting Started
Welcome gyaani! Note that if the field is an array, then echoing it out will not help you much; you will need to loop through the field (e.g. fields such as images where the field accepts multiple images, multiple pages reference fields, etc...) -
If you are looking for pretty: http://www.json-generator.com/ and http://www.jsoneditoronline.org/ ...and cool: http://jsonmate.com/ ...and complicated? http://jsoneditor.net/
-
Hide Process Module custom admin pages for certain role
kongondo replied to Roope's topic in General Support
Roope, Would this help? - "Page Edit Per Role" module by pogidude. There's a couple of similar modules there, FYI. -
@tiptronic, Apologies if I sounded somewhat brash in my earlier posts. It was late here. Again, welcome to PW. You will love it, am sure. And of course, don't shy away from asking questions...keep 'em coming...they help us too cheers, k
-
OK, it seems we are crossing wires here... Above was in response to this: ....what's in the core is now pretty obvious, no?
-
I see Modules: http://modules.processwire.com/ On the left side menu there is core Also if you install PW, in the in-built Module "section" - there are three tabs - site | core | new Enjoy!
-
I feel your frustration....I can't speak for Ryan but I believe this is an oversight...no intention to confuse really...
-
Lance, That page has not been updated.... Here's the actual requirements (aka officially supported) https://github.com/ryancramerdesign/ProcessWire http://processwire.com/about/news/introducing-processwire-2.4/ Although, I think I read somewhere in the forums that some people have managed to use it with PHP 5.2.x... Edit: Squeeze seems to be Debian 6?
-
Tiptronic, first, welcome to PW and the forums... Which languages module are you referring to? If you are talking about LanguageSupport and family, they are part of the core. It would be worrisome if they were not compatible with 2.4 http://processwire.com/api/multi-language-support/ As for Admin Themes, are you seriously contemplating using an older version of PW just so that you can use Teflon? That's some serious love right there! Jokes aside, in the interim, why not just use the core admin themes that ship with PW? The benefits of PW 2.4 far outweigh not using Teflon in the interim... And now I must go and hide before Soma.....
-
In a function you want to use wire('page') or $wire->page....same is true for other PW variables...Something about PHP scope whose name I always forget... If in a class (module)....there's also $this....
-
Yes...there are modules for this here: http://mods.pw/2y - hide/unhide http://mods.pw/2U - delete http://mods.pw/2z - publish/unpublish
-
I didn't know that, thanks....I use Dropbox, GDrive and Amazon Drive to manage different bits and pieces of my life. I had sugarsync too but removed that. I have never really used what Microsoft gave me (Skydrive) - it just sits there doing nothing.
-
FontAwesome template icons not showing in page list
kongondo replied to thetuningspoon's topic in General Support
Yes...you must have missed this post -
Er, isn't this explained in his elaborate post? He's clearly stated the changes he'd like to see..