On 6/7/07, <b class="gmail_sendername">Sandy</b> <<a href="mailto:sandy@onebit.ca">sandy@onebit.ca</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tegan Dowling wrote:<br>> I can't speak for Laszlo for sure -- but I know what he asked for<br>> resembles what I want: does this page have a read-attribute set?<br>><br>> Because if this page does not have a read attribute set (not on the
<br>> page's ?action=attr nor inherited from the group's<br>> GroupAttributes?action=attr), then I want to know that at a glance, when<br>> I'm on the page as an admin.<br>><br>> Certainly, most of what I want to protect, I'll protect by placing in a
<br>> read-protected area. But sometimes I'll want to read-protect a page<br>> within an unprotected group. OR sometimes I may unprotect<br>> (read-attribute = nopass) a page within a read-protected group, and it
<br>> would be good for me, as an admin, to see something right on the page<br>> that could alert me to the fact that I'm looking at / working on such a<br>> page.<br>><br>> I've lived without this, and I can continue to do so, but Laszlo has
<br>> asked if there's any kind of condition that can be inquired about from<br>> within a page to determine it's read-protection-status. I'd use it if I<br>> knew about it. Is there such a thing?<br>
><br>><br><br>Is there a variable that can be displayed in the sidebar, and surrounded<br>by (:if:) to only show if you've admin privileges?</blockquote><div><br>Do you mean (:if auth admin:) ? I wasn't worrying about how to limit display of the information about whether a page has a read-protection attribute, figuring I'd deal with that once I know whether there even is a way to get the attribute-existence information on the page.
<br><br>But ... <br><br>(:if expr auth admin && pageattribute read :)<br>page has read-protection<br>(:if expr auth admin && ! pageattribute read:)<br>page does not have read-protection<br>(:ifend:)<br><br>
Is that what you were getting at?<br></div><br></div>