Page 1 of 1

CreateInputRadioGroup parameter

Posted: Thu Jul 03, 2008 8:12 am
by irish
I am using the CreateInputRadioGroup method but the delimiter is getting parsed as ASCII. The last parameter is suppossed to insert formatting, according to the comments: "@param string A delimiter to throw between each radio button, e.g., a
tag or something for formatting"

here's how I'm using it:

Code: Select all

$smarty->assign('inputradioTitleAb', $this->CreateInputRadioGroup($id,'contentsearch',$radio,'ta','',"<br />"));
it's displaying on the page like this:

Title & Abstract
Title & Abstract & Content


and the HTML source looks like this:

Code: Select all

<input type="radio" name="cntnt01contentsearch" id="cntnt01contentsearch1" value="ta" />
<label for="cntnt01contentsearch1">Title & Abstract</label><br />
<input type="radio" name="cntnt01contentsearch" id="cntnt01contentsearch2" value="tac" />
<label for="cntnt01contentsearch2">Title & Abstract & Content</label><br />
How should I be putting in the argument, if '
;' does not work?

Re: CreateInputRadioGroup parameter

Posted: Mon Jul 07, 2008 11:09 am
by irish
I still have not being able to fix this, has anyone else had this issue?

Re: CreateInputRadioGroup parameter

Posted: Mon Jul 07, 2008 11:17 am
by cyberman
Have you tried this too?

Code: Select all

$smarty->assign('inputradioTitleAb', $this->CreateInputRadioGroup($id,'contentsearch',$radio,'ta','','<br />'));

Re: CreateInputRadioGroup parameter

Posted: Mon Jul 07, 2008 4:13 pm
by irish
thanks cyberman, no joy on that one either.  :(

Re: CreateInputRadioGroup parameter

Posted: Thu Jul 10, 2008 9:34 am
by cyberman
Hmm, do you get the same result if you move
to a variable and insert this?

Re: CreateInputRadioGroup parameter

Posted: Thu Jul 10, 2008 2:15 pm
by irish
cyberman,

I tried using a variable but no joy. I can see why now. The 'cms_module_CreateInputRadioGroup' in modform.inc.php is running the parameters through 'cms_htmlentities'

I'll just have to remove the entity cleaner from the method for that parameter.