String freeze: Better throttle description and help text for Blocks module

gaele - December 11, 2007 - 14:45
Project:Drupal
Version:6.x-dev
Component:documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

As suggested by Factory Joe.

You can auto-disable certain blocks during high server load to reduce stress by enabling the "throttle" option. The option is available if the throttle module is enabled.

AttachmentSize
block.module.patch1.96 KB

#1

Gábor Hojtsy - December 11, 2007 - 15:03
Status:patch (code needs review)» patch (code needs work)

- So is there no value in linking to the Throttle config page?
- While we are here, why not break up this long help text to t()'s per paragraph, as used elsewhere? (And as it is much easier for translators).

#2

gaele - December 11, 2007 - 16:20
Status:patch (code needs work)» patch (code needs review)

At your service ;-)

AttachmentSize
block.module.patch6.39 KB

#3

keith.smith - December 11, 2007 - 16:34
Status:patch (code needs review)» patch (code needs work)

Note that there is an older issue for block module help text, at http://drupal.org/node/189865. But, it has no patch so I'd say just close that one as a duplicate if you want to continue here.

I haven't looked at this help text in detail, but this may also be an opportunity to add text addressing the new drag-and-drop ordering functionality for the blocks page.

I just happened to notice this existing line at the bottom of the patch:

       return '<p>'. t('Here you can create a new block. Once you have created this block you must make it active and give it a place on the page using <a href="@overview">blocks</a>. The description is used in the "block" column on the <a href="@overview">blocks</a> page.', array('@overview' => url('admin/build/block'))) .'</p>';

When we say "make it active and give it a place on the page", this does mean enable and position, right? It may be out of scope here, but this line looks like it could use some tweaking.

#4

gaele - December 11, 2007 - 17:07
Status:patch (code needs work)» patch (code needs review)

Implemented Keith's suggestions (except for the drag-and-drop description).

AttachmentSize
block.module.patch7.52 KB

#5

keith.smith - December 11, 2007 - 23:03
Component:block.module» documentation

#6

Gábor Hojtsy - December 14, 2007 - 18:52
Status:patch (code needs review)» patch (code needs work)

- Thanks for breaking the big stuff up :) Although our code style requires that dots stick to the literal strings, so eg. '<li>'. instead of '<li>' .
- position it on the page using <a href="@overview">blocks</a>? Using blocks?

#7

gaele - December 15, 2007 - 18:24

- Adjusted to conform to code style.
- "Once you have created this block you must enable it and position it on your web pages using the blocks page." (which is consistent with the description on the blocks page itself.)

#8

gaele - December 15, 2007 - 18:25
Status:patch (code needs work)» patch (code needs review)

#9

keith.smith - December 15, 2007 - 19:04
Status:patch (code needs review)» patch (code needs work)

No patch attached. :(

#10

keith.smith - December 15, 2007 - 19:55
Title:String freeze: Better throttle description on Blocks page» String freeze: Better throttle description and help text for Blocks module
Status:patch (code needs work)» patch (code needs review)

I started putting the drag-and-drop stuff in per #4, and wound up with a wholescale rewrite.

The attached patch:
* reworks the main help text, plus the text headers over the main block pages.
* It does handle the drag-and-drop stuff, though not every eventuality (like non-js browsers, etc.)
* I put the throttle-specific help on the admin/build/block page inside a conditional so that it only appears if throttle.module exists.
* This patch uses gaele's work from previous patches to split the help text into more manageable strings for translation.

This is a major rewrite, so I'm going to expand the scope of this issue to cover the help text as well.

AttachmentSize
block-module-help.patch8.01 KB

#11

keith.smith - December 15, 2007 - 23:10

Added a note about remembering to click Save blocks after reordering block items.

AttachmentSize
block-module-help-2.patch8.13 KB

#12

Gábor Hojtsy - December 18, 2007 - 16:41
Status:patch (code needs review)» fixed

Reading it through, it looks like a huge improvement so I committed this one. I am not sure how non-JS browsers can be accomodated here, but if you have good ideas, feel free to reopen the issue. The "when allowed by an administrator, specific blocks.." part also looked a bit strange, but I tried to come up with better wording myself, and was unable to. So feel free to submit a small improvement for that too in an issue follow up on this same issue, if you have better ideas. Thanks.

#13

Anonymous - January 1, 2008 - 16:41
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.