$block_id==$id
dan90 - May 15, 2006 - 09:15
| Project: | PHPTemplate |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
$block id does not appear to be resetting in the PHPtemplate-supplied variables to block.tpl.php - at least in my 4.7.0 site. I do have 2 additional block regions, and will test that it is not related to these as time permits.

#1
That is to sah : both $block_d and $id ascend in identical sequence across all block regions, and neither variable resets to 1 at the start of the region. I believe $block_id should be resetting to 1 at the first block of each region.
#2
needed a per-region counter, so I posted a workaround on the forums
#3
Sorry, I've been smoking too much crack. the forum post is here.