Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Blocks customargs?
  • Posted: 22.02.2007, 23:28
     
    ntward
    rank:
    Freshman Freshman
    registered:
     January 2007
    Status:
    offline
    last visit:
    16.07.08
    Posts:
    37
    Reworded for clarity:

    Hi, in one of my module blocks I want to pass back some none standard variables. So, as well as 'title' and 'content' I want to pass a variable called, lets say, 'icon' - my theme then handles this. However, this variable is still set when the following block, say admin_messages is displayed - and so the template acts on the variable again, even though it wasn't set in admin_messages.

    How do I overcome this? Is there a variable in $blockinfo which is cleared between calls to blocks so that I can store custom info in it?

    Thanks!



    edited by: ntward, Feb 24, 2007 - 03:42 PM
  • Posted: 09.03.2007, 00:16
     
    ntward
    rank:
    Freshman Freshman
    registered:
     January 2007
    Status:
    offline
    last visit:
    16.07.08
    Posts:
    37
    Hmm. I've got this to work now anyway. Using some CSS trickery, the order of the elements no longer matters.
    Cheers though

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula