<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>ProcessWire Forum: Latest Posts</title>
	<description>Latest posts in the ProcessWire forum</description>
	<link>http://processwire.com/talk</link>
	<pubDate>Wed, 22 May 2013 08:25:47 +0000</pubDate>
	<ttl>10</ttl>
	<item>
		<title>Page Edit Per Role</title>
		<link>http://processwire.com/talk/topic/3629-page-edit-per-role/</link>
		<description><![CDATA[<div>Just thought I'd share this module which I modified from the <a href='http://modules.processwire.com/modules/page-edit-per-user/' class='bbc_url' title=''>PageEditPerUser module</a> by Ryan Cramer. I needed page-specific edit access by roles, not by user. So...</div>
<div>&nbsp;</div>
<div><strong>Overview</strong></div>
<div>&nbsp;</div>
<div>Assign edit access to roles on a per-page basis.</div>
<div>&nbsp;</div>
<div><b>Description</b></div>
<div>&nbsp;</div>
<div>The user must already have page-edit permission on one of their roles in order to get&nbsp;</div>
<div>edit access to assigned pages. Otherwise, they will only gain view access.</div>
<div>&nbsp;</div>
<div>This module is fully functional as-is, but intended as a proof-of-concept for those&nbsp;</div>
<div>wanting to go further with adding custom edit and/or view access.</div>
<div>&nbsp;</div>
<div><strong>How to install</strong></div>
<div>&nbsp;</div>
<div>1. Copy the PageEditPerRole.module file to /site/modules/</div>
<div>2. Go to Modules in the ProcessWire admin and click "Check for new modules"</div>
<div>3. Click "install" for "Page Edit Per Role"</div>
<div>&nbsp;</div>
<div><strong>How to use</strong></div>
<div>&nbsp;</div>
<div>1. Create a new role called "editor" (or whatever you want to call it) and give the role "page-edit" permission. If you already have a role in place that you want to use, that is fine too.</div>
<div>2. Under "Access &gt; Roles" locate the role you want to assign edit access to. Edit this role.&nbsp;</div>
<div>3. For this roles's "Editable Pages" field: select one or more pages you want users with this role to be able to edit.</div>
<div>4. Save the role.</div>
<div>5. Under "Access &gt; Users" locate the user you want to apply the role to. Edit this user.</div>
<div>6. For this user's "Roles" field, select the new role you added - "editor".</div>
<div>7. Save the user and your are done.</div>
<div>8. To test, login as the user you edited to confirm it works how you expect.</div>
<div>&nbsp;</div>
<div><strong>Download</strong>&nbsp;<a href='http://modules.processwire.com/modules/page-edit-per-role/' class='bbc_url' title=''>http://modules.processwire.com/modules/page-edit-per-role/</a></div>]]></description>
		<pubDate>Wed, 22 May 2013 08:25:47 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3629-page-edit-per-role/</guid>
	</item>
	<item>
		<title>How to debug / use the error log</title>
		<link>http://processwire.com/talk/topic/1126-how-to-debug-use-the-error-log/</link>
		<description><![CDATA[Hello everybody,<br />
<br />
just digging deeper in PW and stumbling upon the question how to debug modules etc. There is an errorlog.txt generated and filled on exceptions (I think), but how can I debug variables and functions in modules? Is there an API for that? Like $error-&gt;log($foo, $bar) or something? I don't think that my way of var_dump($foo); break; is the way to go ;-)<br />
<br />
Thanks in advance,<br />
Marc]]></description>
		<pubDate>Wed, 22 May 2013 07:59:50 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/1126-how-to-debug-use-the-error-log/</guid>
	</item>
	<item>
		<title>system offline</title>
		<link>http://processwire.com/talk/topic/3631-system-offline/</link>
		<description><![CDATA[<p>Hi everybody,</p>
<p>&nbsp;</p>
<p>is there a way to work online with a fresh install and at the same time prevent visits to the new site?</p>
<p>&nbsp;</p>
<p>For example, in expression engine there's a "system offline" mode: only admins and members can view the site, all the other people get a "coming soon" message.</p>
<p>&nbsp;</p>
<p>Thanks!</p>
]]></description>
		<pubDate>Wed, 22 May 2013 06:58:44 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3631-system-offline/</guid>
	</item>
	<item>
		<title><![CDATA[Using $page-&#62;set() with Page input field]]></title>
		<link>http://processwire.com/talk/topic/3626-using-page-set-with-page-input-field/</link>
		<description><![CDATA[<p>Hello guys!</p>
<p>&nbsp;</p>
<p>I'm starting to build a custom csv-import module and doing little pre testing here. Just playing with API and already in trouble..</p>
<p>&nbsp;</p>
<p>Why I can't update Page input data with this one:</p>
<pre class="prettyprint">
$demo-&gt;setOutputFormatting(false);
$demo-&gt;set('product_group', 1040);
$demo-&gt;save();
</pre>
<p>When it works perfectly fine with text fields. How should I update it's value?</p>
]]></description>
		<pubDate>Wed, 22 May 2013 05:50:00 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3626-using-page-set-with-page-input-field/</guid>
	</item>
	<item>
		<title>UrlSegment Not Working in Blog Profile</title>
		<link>http://processwire.com/talk/topic/3605-urlsegment-not-working-in-blog-profile/</link>
		<description><![CDATA[<p>Dear all,</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Newbie here <img src='http://processwire.com/talk/public/style_emoticons/default/smile.png' class='bbc_emoticon' alt=':)' /></p>
<p>&nbsp;</p>
<p>I've successfully installed the Blog Profile, and trying to modify the recent post widget. I use the $input-&gt;urlSegment1 to get the path of URL. But somehow it return nothing.</p>
<p>&nbsp;</p>
<p>I've checked the site/config.php and enable the Setup-&gt;Templates-&gt;URLs-&gt;Allow URL Segments? but still the the syntax return nothing.</p>
<p>&nbsp;</p>
<p>Is there something I missed here?</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks.</p>
<p>&nbsp;</p>
]]></description>
		<pubDate>Wed, 22 May 2013 05:45:17 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3605-urlsegment-not-working-in-blog-profile/</guid>
	</item>
	<item>
		<title>Calling an image field in a template</title>
		<link>http://processwire.com/talk/topic/3239-calling-an-image-field-in-a-template/</link>
		<description><![CDATA[<p>Hi Guys</p>
<p>&nbsp;</p>
<p>I'm doing the unthinkable and attempting to recreate cmscritic.com with processwire. A task that I'm sure will be incredibly fulfilling once complete and I'm hoping will teach me how to use this CMS in the process. (pun not intended).&nbsp;</p>
<p>&nbsp;</p>
<p>I'm messing with the blog profile at the moment and when I look at the template, I see it's got a field "site title" which when viewing the page, is populated with the words "Basic Blog Profile" and used in the masthead. Since I want to use an image logo instead and have it easy to change within the backend, I added an image field to the template and uploaded my logo. &nbsp;The issue i'm having is that I'm unsure as to how to call this and within which template. I can see it in the page now as an uploaded image but I don't know how to call it within the masthead.</p>
<p>&nbsp;</p>
<p>Tough to explain, hopefully my question makes sense.</p>
<p>&nbsp;</p>
<p>Here's a screenie to show what I mean.</p>
<p>&nbsp;</p>
<p><span rel='lightbox'><img class='bbc_img' src="http://imageshack.us/a/img849/5386/capturegfw.png" alt="capturegfw.png"></span></p>
<p>&nbsp;</p>
<p>Thanks &nbsp;in advance!</p>
<p>&nbsp;</p>
<p>Mike</p>
]]></description>
		<pubDate>Wed, 22 May 2013 05:10:16 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3239-calling-an-image-field-in-a-template/</guid>
	</item>
	<item>
		<title>homepage slide images (repeater + cropmodule) not showing if guest</title>
		<link>http://processwire.com/talk/topic/2291-homepage-slide-images-repeater-cropmodule-not-showing-if-guest/</link>
		<description><![CDATA[Just realised that if I'm not logged in, then my images for my homepage slider (which is a repeater field with its images using the Crop module) don't show.<br />
<br />
I'm using the latest dev version of PW and am thinking this may well be to do with the new protected file system? My home template is accessible though so not to sure on where to go next?]]></description>
		<pubDate>Wed, 22 May 2013 02:32:24 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/2291-homepage-slide-images-repeater-cropmodule-not-showing-if-guest/</guid>
	</item>
	<item>
		<title>Is PW becoming more popular?</title>
		<link>http://processwire.com/talk/topic/3623-is-pw-becoming-more-popular/</link>
		<description><![CDATA[<p>Does the&nbsp;presence&nbsp;of spam on the forums mean we are becoming more popular? <img src='http://processwire.com/talk/public/style_emoticons/default/smile.png' class='bbc_emoticon' alt=':)' /> I've encountered a couple this week. Either way, I think PW is becoming more popular. My take, it's more popular in Europe than other regions?</p>
]]></description>
		<pubDate>Tue, 21 May 2013 23:22:45 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3623-is-pw-becoming-more-popular/</guid>
	</item>
	<item>
		<title>Repeater and Colorpicker: different colour for each repeater</title>
		<link>http://processwire.com/talk/topic/3612-repeater-and-colorpicker-different-colour-for-each-repeater/</link>
		<description><![CDATA[<p>I have a repeater which will contain an image and text, I want to apply a custom colour to an element in each repeater using the color picker. I'm not sure the best way to specify an individual css name for each repeater, can it be automated in some way?<br><br>
&nbsp;In my code below i'm using the colour picker and some inline css, but in this example each repeater item would have the same colour.</p>
<p>I want to make each one different.</p>
<p>&nbsp;</p>
<pre class="prettyprint">
&lt;?php
		foreach($page-&gt;repeater as $p) {
		echo "&lt;style&gt;.repeatColor {background-color: #{$p-&gt;colour_picker};}&lt;/style&gt;";
		echo "&lt;div class='repeatColor'&gt;&lt;/div&gt;";	
		}&nbsp;&nbsp;
		?&gt;
</pre>
<p>&nbsp;</p>
]]></description>
		<pubDate>Tue, 21 May 2013 22:18:54 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3612-repeater-and-colorpicker-different-colour-for-each-repeater/</guid>
	</item>
	<item>
		<title>Updating Repeaters via API - without removeAll()</title>
		<link>http://processwire.com/talk/topic/3619-updating-repeaters-via-api-without-removeall/</link>
		<description><![CDATA[<p>Is there a way other than the removeAll() method to update existing repeater fields?</p>
<p>&nbsp;</p>
<p>I have pages that have 10 repeaters—each page may get edited a dozen times or more.</p>
<p>What happens with removeAll() is each time the page is saved, the repeaters are removed and recreated — assigning them a new page id.</p>
<p>&nbsp;</p>
<p>The page id numbers start to grow like crazy.</p>
<p>&nbsp;</p>
<p>For example:</p>
<p>&nbsp;</p>
<p>1 page with 10 repeaters that gets edited 10 times = <strong>100 new page ids</strong>. Not a huge deal.</p>
<p>Except, there could be 20-30 pages that get that many edits. Now we are talking about <strong>2000-3000 new page ids — every day</strong>.</p>
<p>&nbsp;</p>
<p>So I'm looking for another method to update the existing repeaters.<br>
There will always be the same 10. No more, no less.</p>
<p>&nbsp;</p>
<p>A gentle nudge in the right direction would be appreciated.</p>
]]></description>
		<pubDate>Tue, 21 May 2013 21:51:06 +0000</pubDate>
		<guid>http://processwire.com/talk/topic/3619-updating-repeaters-via-api-without-removeall/</guid>
	</item>
</channel>
</rss>