1
I Use This!
Inactive

News

Analyzed about 9 hours ago. based on code collected about 9 hours ago.
Posted over 13 years ago
processwire: If user can edit page, give them an edit button: if($page->editable()) echo "<a href='/processwire/page/edit/?id=$page->id'>Edit</a>";
Posted over 13 years ago
processwire: Can the current user edit a page in ProcessWire? Find out with $page->editable(); See also: $page->viewable(); & more: http://t.co/Wps8bibX
Posted over 13 years ago
processwire: Find the 10 most recently changed pages in ProcessWire: $pages->find("sort=-modified, limit=10, include=all"); http://t.co/TE8hg9Du
Posted over 13 years ago
processwire: ProcessWire API: $pages->find(selector); excludes hidden & inaccessible pages. Add "include=all" to the selector to make it include them.
Posted over 13 years ago
processwire: RT @somartist: LanguageLocalizedURL module now supports language domains http://t.co/RjRSeLTj #processwire
Posted over 13 years ago
processwire: ProcessWire Tip: Enable or disable debug mode in /site/config.php on this line: $config->debug = false; (true to enable, false to disable)
Posted over 13 years ago
processwire: Why? Debug mode keeps a memory log of DB queries, consuming memory. Creating 1000s of pages can fill up memory with those query logs.
Posted over 13 years ago
processwire: ProcessWire API Tip: If creating or importing thousands of pages in 1 request, do it with debug mode OFF, which saves lots of memory…
Posted over 13 years ago
processwire: <?php function s($p){echo"<li>$p->title";if($p->numChildren){echo"<ul>";foreach($p->children as$c)s($c);echo"</ul>";}}s($pages->get(1));
Posted over 13 years ago
processwire: …and here's ProcessWire $page->numChildren in action– Just for fun, the next tweet creates a full recursive sitemap (in 140 chars or less!)…