1
jfmoore
wf-Channel 2.0 - Page Headline
  • 2007/12/16 17:15

  • jfmoore

  • Quite a regular

  • Posts: 360

  • Since: 2004/6/6 5


In wf-Channel 2.0 on the Create page regarding the Page Headline field, it says the following:

Quote:

Page Headline*
This will be displayed on the actual page. Leave blank to not show a page headline


It is, however, a required field and cannot be left blank, so you have to have the Page Headline whether you want it or not. I assume that this will be fixed in the next release. Until then, how can I set this as not required?

Jere
...

2
Catzwolf
Re: wf-Channel 2.0 - Page Headline
  • 2007/12/17 0:41

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Hiya,

Open the following file:

Xoops_root/class/forms/page_form.php and change the following line (roughly line 15)

$content_subtitle = new XoopsFormText_MA_AD_EWFC_HEADLINE'wfc_headline'50150$this->getVar'wfc_headline''e' ) );
$content_subtitle->setDescription_MA_AD_EWFC_HEADLINE_DSC );
$form->addElement$content_subtitletrue );


to the following:

$content_subtitle = new XoopsFormText_MA_AD_EWFC_HEADLINE'wfc_headline'50150$this->getVar'wfc_headline''e' ) );
$content_subtitle->setDescription_MA_AD_EWFC_HEADLINE_DSC );
$form->addElement$content_subtitlefalse );


And then open:

Xoops_root/class/page.php and change the following line (roughly line 31 )

$this->initVar('wfc_headline'XOBJ_DTYPE_TXTBOXnulltrue150);


To:

$this->initVar('wfc_headline'XOBJ_DTYPE_TXTBOXnullfalse150);

3
jfmoore
Re: wf-Channel 2.0 - Page Headline
  • 2007/12/17 4:46

  • jfmoore

  • Quite a regular

  • Posts: 360

  • Since: 2004/6/6 5


Catz,

Thanks for the quick reply. Much appreciated.

I figured out, of course, that it was modules/wfchannel/class, not xoops_root/class. Too much coffee, or not enough?

Jere
...

4
Catzwolf
Re: wf-Channel 2.0 - Page Headline
  • 2007/12/17 6:05

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Not enough so it seems, glad you got it working :)

Login

Who's Online

380 user(s) are online (300 user(s) are browsing Support Forums)


Members: 0


Guests: 380


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