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

Support Forum

Start ::  Developers Corner ::  Module Development ::  Blocks customargs?

Moderated by: Support Team

Bottom
Blocks customargs?

  • Link to this postingPosted: 22.02.2007, 23:28
    Profile
    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
  • Link to this postingPosted: 09.03.2007, 00:16
    Profile
    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

Start ::  Developers Corner ::  Module Development ::  Blocks customargs?

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula