cms_selflink urlparam urlencodes ? and = (in UDT)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

cms_selflink urlparam urlencodes ? and = (in UDT)

Post by rotezecke »

i reported this as a bug only to be told that it works fine elsewhere.

Code: Select all

{cms_selflink page="testing" text="Hi there" urlparam="?models=G"}
used to produce links like:

http://test.wallaby.nimfm.org/products/ ... l?models=G

since 1.10 it does:

http://test.wallaby.nimfm.org/products/ ... models%3DG

i also use this code in a UDT where it performs likewise:

Code: Select all

 
 $smarty = cmsms()->GetSmarty();
 $smarty_data = "{cms_selflink page=\"$pageAlias\" text=\"$letter\" urlparam=\"?models=$letter\" more=\"rel='nofollow'\"}";
  $smarty->_compile_source('temporary template', $smarty_data, $_compiled );
  @ob_start();
  $smarty->_eval('?>' . $_compiled);
  $_contents = @ob_get_contents();
  @ob_end_clean();
  echo '<li>'.trim($_contents).'</li>';

Any idea
MantaPro
Forum Members
Forum Members
Posts: 97
Joined: Sun Feb 03, 2008 8:14 pm

Re: cms_selflink urlparam urlencodes ? and = (in UDT)

Post by MantaPro »

User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: cms_selflink urlparam urlencodes ? and = (in UDT)

Post by rotezecke »

Post Reply

Return to “CMSMS Core”