[drupal-devel] [feature] Provide a 70x5 textarea in which I can a write a block's "visbility check" using Drupal's APIs.

tostinni drupal-devel at drupal.org
Thu Apr 28 13:48:32 UTC 2005


Issue status update for http://drupal.org/node/21353

 Project:      Drupal
 Version:      cvs
 Component:    block.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  chx
 Reported by:  chx
 Updated by:   tostinni
 Status:       patch

"Probably a little confusing to non-coders but it will solve the problem
and copy n paste code can be provided via drupal.org for users.

"
Maybe a handbook page could be created with some examples Dries
provided on the mailing list (and others code of course) and make a
link in the block_help ?




tostinni



Previous comments:
------------------------------------------------------------------------

April 26, 2005 - 08:08 : chx

Attachment: http://drupal.org/files/issues/block_php.patch (3.37 KB)

Dries, you asked for this.




------------------------------------------------------------------------

April 26, 2005 - 08:13 : chx

Attachment: http://drupal.org/files/issues/block_php_0.patch (3.38 KB)

Escaped the < and > signs in the description.




------------------------------------------------------------------------

April 26, 2005 - 09:09 : chx

Attachment: http://drupal.org/files/issues/block_php_1.patch (3.51 KB)

Rewording following advice from Steef and JonBob.




------------------------------------------------------------------------

April 26, 2005 - 11:10 : Dries

This looks _really_ handy to me.  +1 from me.


In order not to confuse the average user, I suggest to remove the
'node-type specific visibility settings'.  Like that, we cater for the
most common/popupalar functionality.  Anything less popular can be
implemented using PHP.


This is a good example of 'less is more'.




------------------------------------------------------------------------

April 27, 2005 - 01:10 : chx

Attachment: http://drupal.org/files/issues/block_php_2.patch (9.68 KB)

I deleted types.




------------------------------------------------------------------------

April 28, 2005 - 08:05 : budda

Probably a little confusing to non-coders but it will solve the problem
and copy n paste code can be provided via drupal.org for users.


Good stuff.


+1 from me.







More information about the drupal-devel mailing list