Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/beac2e175d0c347d#

Recently I was trying to create custom block to display totals under one of
the columns in grid I was working on.

Here are several problems I'm came across trying to do that:

   - attempt to define block and give it's name in "total_block" in column
   definition failed (code doesn't even look there)
   - I somehow managed to get it working, but I asked me to place "'"
   (single quotes) around inside my block, plus placing "," after that all.

I've managed to fix that inconsistencies and here is the patch.

To Test:

   1. Add *totals_render_as="grid_total_row"* parameter to "grid" block
   rendering
   2. Add *totals="SUM"* on any reasonable field
   3. Add *total_block="grid_custom_total_td"* to that field definition in
   grid

Now you must see that custom block content as total under your column. If
custom block isn't defined, then default block must be shown (verify that
too).

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

  • No labels