From 74d9266b3f2e0480c8efe7b938d2d213ecca3f19 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 30 Jun 2003 18:34:02 +0000 Subject: - Bugfix: fixed calendar block caching. Patch by Al. Fixes bug #2131. - Improvement: improved the block module documentation. Patch #59 by Gerhard. --- modules/block.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index f84067931..5ac9d9f59 100644 --- a/modules/block.module +++ b/modules/block.module @@ -8,7 +8,7 @@ function block_help() { $output .= "

The path setting lets you define on which pages you want a specific block to be shown. If you leave the path blank it will show on all pages. The path uses a regular expression syntax so remember to escape special characters!

"; $output .= "

In case you should not know what a regular expression is, you should read about them in the PHP manual. The chapter to look at is the one on Perl-Compatible Regular Expressions (PCRE).

"; $output .= "

However, for basic tasks it is sufficient to look at the following examples:

"; - $output .= "

If the block should only show up on blog pages, use <^/blog>. To display on all node views use <^/node/view>. The angular brackets are used as delimiters of the regular expression. The caret indicates the start of the path. To show up on either forum or book pages use <^(/forum|/book)>. The round brackets form a group of expressions, divided by the | character. It matches if any of the expressions in it match. A more complicated example is <^/node/add/(story|blog|image)>. Blocks which have their paths set to this expression will show up on story, block, or image composition pages.

"; + $output .= "

If the block should only show up on blog pages, use </blog>. To display on all node views use </node/view>. The angular brackets are used as delimiters of the regular expression. To show up on either forum or book pages use <(/forum|/book)>. The round brackets form a group of expressions, divided by the | character. It matches if any of the expressions in it match. A more complicated example is </node/add/(story|blog|image)>. Blocks which have their paths set to this expression will show up on story, block, or image composition pages.

"; $output .= "

Custom Blocks

"; $output .= "

A custom block is a block that contains admin-supplied HTML, text or PHP content (as opposed to being generated automatically by a module). Each custom block consists of a title, a description, and a body of text, HTML, or PHP code which can be as long as you wish. The Drupal engine will 'render' the content of the custom block.

"; $output .= "

PHP in custom blocks

"; -- cgit v1.2.3