1
cpascal
setDescription
  • 2011/1/4 23:05

  • cpascal

  • Just popping in

  • Posts: 26

  • Since: 2010/3/20


hi

I wonder how I can add in some descriptions Administration page banner example page:

in ../modules/system/admin/banners/main.php
xoops_load('XoopsFormLoader');
xoops_load('XoopsFormElement');
        
$form->setDescription(_AM_SYSTEM_BANNERS_CONTNAMET_DESC);


function setDescription is not recognized
thank you for your help

2
bumciach
Re: setDescription
  • 2011/1/5 10:53

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


setDescription method works only for individual form elements
Example for text type input:
$page_banner = new XoopsFormText_AM_SYSTEM_BANNERS_CONTNAMET'banners'55$this->getVar'banners''e' ) );
$page_banner->setDescription_AM_SYSTEM_BANNERS_CONTNAMET_DESC );
$form->addElement$page_banner );

3
cpascal
Re: setDescription
  • 2011/1/5 18:26

  • cpascal

  • Just popping in

  • Posts: 26

  • Since: 2010/3/20


thank you for your help it works better bumciach


Login

Who's Online

426 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 426


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits