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
le="color: #000000"><?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:
le="color: #000000"><?php $page_banner = new XoopsFormText( _AM_SYSTEM_BANNERS_CONTNAMET, 'banners', 5, 5, $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

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits