Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Getting an extension to display something...

edited August 2006 in Vanilla 1.0 Help
So i'm busy trying to get to grips with some of the more complex (in my eyes, atleast) workings of vanilla by plodding through the process of making an extension to allow users to re-order the way extensions display in their panel. I'm trying to get something like the categories management list (or exactly like, for a start) onto a settings page and nothing seems to be happening. (i get the head/panel/etc but the actual body is empty).
Here's what i have so far:
class PanelReOrder extends PostBackControl { function PanelReOrder(&$Context) { $this->Name = 'PanelReOrder'; $this->ValidActions = array('PanelReOrder'); $this->Constructor($Context); function Render() { $this->CallDelegate('PreRender'); echo 'hi'; $this->CallDelegate('PostRender'); } } } $PanelReOrder = $Context->ObjectFactory->NewContextObject($Context,'PanelReOrder'); $Page->AddRenderControl($PanelReOrder,$Configuration["CONTROL_POSITION_BODY_ITEM"]);

I call it using settings.php?PostBackAction=PanelReOrder.

What am i missing? It's probably something really obvious but I'm just a little mystified. If i can atleast get it to start chucking stuff to the screen then i can start to dig through how to do different things. Then I'll probably get *really* stuck :D

Comments

  • Nevermind. I had my render function inside my other function. Fixed now.
    *Rolls up sleeves
  • Is he trying to make us think Minisweeper is not mark?

    good try mark!
This discussion has been closed.