Jump to content


ClintonSkakun

Member Since 23 Jan 2012
Offline Last Active May 10 2013 04:41 PM
-----

Posts I've Made

In Topic: Web app with PW?

10 May 2013 - 04:38 PM

Web apps in PW? Hell yeah, Processwire is great for that. I love how I can map out my app before I get started into a tree.

 

I actually built a lot of web apps on PW. One being http://collabmango.com

 

PW saves a lot of time in building web apps. The selectors and not needing to deal with DB crap is a huge +


In Topic: find pages with upper level parents that have x field value

13 April 2013 - 08:07 PM

Ok, here's another idea:

 

let's say we're looking for "update" pages assigned to or owned by $user:

 

function findUserPages($user, $template) {

return $pages->find("template=account,user|assigned_user={$user}")->find("template={$template}");

}

 

$pages_found = findUserPages($user, "update");


In Topic: Process Tools Create Pages (WIP)

06 February 2013 - 11:52 AM

Adding this to my library:)


In Topic: Suggestion for PW theme or future development

06 February 2013 - 11:49 AM

Soma, that plugin looks really good. I'm excited to try it out. I do a lot of small websites where most of the work is just creating pages, then filling out the content. So something like this will knock some time off the process.

 

Ryan, that plugin looks good also. However, I don't see it as a huge time saver unless there's a specific use. Soma's plugin nearly takes away the need to switch back and forth between pages. The only thing is when we need to add and edit content in the body or other fields.

 

By any rate, thanks for the contributions. You guys rock as always. There's a lot of new stuff to learn, create and improve. We don't all have the free time to dedicate our lives to these things but I like the minor additions here and there. When I get some time, I'd like to make some contributions also.



Thanks Soma. Fancy Admin mode looks really good too! I think most of my queries are covered and shows how out of the loop I have been with PW recently - I should have searched shouldn't I? :)

 

 

I agree with you from a developer perspective as using browser tabs is a fairly standard workflow. However, from a content editor perspective, ease and speed of use is one area that always needs improvement and refinement as content editing is still (by and large) a very technical process for the average person.

 

 

I'm sure they will appear as the community grows. Time is a constant battle for most of us I'm sure and the progress thus far is incredible. However, it is important to open up discussions on better workflows and suggestions regardless, no?

 

I agree, sometimes little tweaks can create huge time savers. My idea might not be the best, but hopefully it gets a few minds working on how we can save more time in each of our projects and make additions down the road.


In Topic: Use both local and external templates

22 December 2012 - 05:33 PM

I don't know of a way to have ProcessWire keep track of two separate template directories. But of course you can turn any template file into a controller for any number of other template files and include them from wherever you want. A simple example would be to create a template called "external" and add a text field to it called "external_file". Then in your external.php:

<?php
if($page->external_file) {
$filename = "/some/external/path/" . $sanitizer->name($page->external_file) . ".php";
if(is_file($filename)) include($filename);
else echo "$filename does not exist";
} else {
echo "No external file defined";
}

Rather than external_file being a text field, it'd be better as a page reference field connected to a <select>. That way you could select your template rather than having to type it in. But I wanted to keep this example as simple as possible.


Wow - Yes, that's one way to do it.

Thanks Ryan, you're a genius.