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...
Minisweeper
New
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:
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
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
0
This discussion has been closed.
Comments
*Rolls up sleeves
good try mark!