CreateInputRadioGroup parameter

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

CreateInputRadioGroup parameter

Post 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?
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: CreateInputRadioGroup parameter

Post by irish »

I still have not being able to fix this, has anyone else had this issue?
cyberman

Re: CreateInputRadioGroup parameter

Post by cyberman »

Have you tried this too?

Code: Select all

$smarty->assign('inputradioTitleAb', $this->CreateInputRadioGroup($id,'contentsearch',$radio,'ta','','<br />'));
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: CreateInputRadioGroup parameter

Post by irish »

thanks cyberman, no joy on that one either.  :(
cyberman

Re: CreateInputRadioGroup parameter

Post by cyberman »

Hmm, do you get the same result if you move
to a variable and insert this?
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: CreateInputRadioGroup parameter

Post 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.
Post Reply

Return to “Developers Discussion”