<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: [documentation] Block visibility snippets?</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText50245 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I got started last
night. To much nervous energy to sleep. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I have a really rough start with more to go
over the next few days. There is a bit of duplicate content in various
places, but there is more overlapping content that is harder to deal with
quickly. The joys of editing.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>IN any case, this is advanced usage so in
the <A
href="http://drupal.org/node/257">http://drupal.org/node/257</A> Customization
and theming section. We have this nicely grouped php snippets section with
php blocks snippets already. What is proposed is a bit different though,
it's about configuring block visibility through code. Now, I can only
think of two situations, visible by user and visible by role, but I suspect
there may be more. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>You idea is to deepen the tree and put both
under a php blocks section. Alternatively we can just add a new
one</FONT><FONT face=Arial size=2> </FONT><FONT face=Arial size=2>under this
node: <A
href="http://drupal.org/node/39282">http://drupal.org/node/39282</A> create
an introduction page called... </FONT><FONT face=Arial size=2>Block
visibility snippets </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Write an intro to the section like <A
href="http://drupal.org/node/21867">http://drupal.org/node/21867</A> and
then put your snippets there. If there is anything we need to move from an
existing post (maybe <A
href="http://drupal.org/node/27690">http://drupal.org/node/27690</A> and <A
href="http://drupal.org/node/13266">http://drupal.org/node/13266</A>) we can
move them.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Which would folks prefer? Deeper
blocks tree, or this?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>-sp</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> documentation-bounces@drupal.org on behalf
of Charlie Lowe<BR><B>Sent:</B> Tue 1/3/2006 11:02 AM<BR><B>To:</B> A list for
documentation writers<BR><B>Subject:</B> Re: [documentation] Block visibility
snippets?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>This certainly sounds like a great idea. As to exactly where it
should<BR>go, Steven Peck posted to the documentation list on 12/28
about<BR>reorganizing the handbook. So rather than thinking about where
the<BR>handbook is now, take a look at what he has proposed in that message
and<BR>join in that threaded discussion.<BR><BR>Charlie<BR><BR>Theodore
Serbinski wrote:<BR>> Guys,<BR>><BR>> With the new PHP block visibility
setting in 4.7, I think we need a<BR>> new section in the handbook for 'Block
visibility snippets' much like<BR>> the current PHP and Block
ones.<BR>><BR>> Anyone know how to go about creating one like this or want
to take the<BR>> initiative? We can then start to include snippets like ones
I've<BR>> posted to this thread already: <A
href="http://drupal.org/node/21353">http://drupal.org/node/21353</A><BR>><BR>>
Same goes for the ones Dries posted here:<BR>> <A
href="http://lists.drupal.org/pipermail/development/2005-April/004310.html">http://lists.drupal.org/pipermail/development/2005-April/004310.html</A><BR>><BR>>
I'm not sure how we would structure this, but perhaps under PHP<BR>> snippets
<<A href="http://drupal.org/node/39282">http://drupal.org/node/39282</A>>
we create a new 'Block<BR>> snippets' parent and then have two children:
'visibility' and 'blocks'<BR>> or similar.<BR>><BR>>
ted<BR>--<BR>[ documentation | <A
href="http://lists.drupal.org/listinfo/documentation">http://lists.drupal.org/listinfo/documentation</A>
]<BR><BR></FONT></P></DIV>
</BODY>
</HTML>