CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#8227] {content_image} lost functionality

avatar
Created By: Martin Malý (natrim)
Date Submitted: Thu Aug 09 04:26:20 -0400 2012

Assigned To:
Version: 1.11
CMSMS Version: 1.11
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
{content_image} lost functionality
Detailed Description:
{content_image} lost all functionality - it only returns selected file name


History

Comments
avatar
Date: 2012-08-09 09:45
Posted By: Robert Campbell (calguy1000)

Tested this numerous times in 1.11
      
avatar
Date: 2012-08-10 02:50
Posted By: Martin Malý (natrim)

1) install fresh CMSMS 1.11
2) open template NCleanBlue
3) put <span class="you should see image inside">{content_image dir='images'
label='test image'}</span>
     before {content}
4) save template
5) open homepage select some image and save
6) look on homepage


      
avatar
Date: 2012-08-10 03:25
Posted By: Tapio Löytty (Stikki)

Confirming this.

Don't have time to fix it right now!

Calguy check:

class.CMS_Content_Block.php:

FROM LINE: 403

    $result = '';
    if( isset($params['block']) )
      {
		$oldvalue = $smarty->caching;
		$smarty->caching = false;
$result = $smarty->fetch(str_replace(' ', '_', 'content:' . $params['block']),
'|'.$params['block'], $contentobj->Id().$params['block']);
		$smarty->caching = $oldvalue;
      }
	  
    $img = self::content_return($result, $params, $smarty);
    if( $img == -1 || empty($img) )
      return;

----

As far i can see it returns always empty image name.

Off to sailing now to the sea.

-Stikki-
      
avatar
Date: 2012-08-10 06:49
Posted By: Jean-Claude Etiemble (jce76350)

Bug confirmed on French forum a report  and tested in last SVN  8226
      
avatar
Date: 2012-08-11 05:25
Posted By: Jean-Claude Etiemble (jce76350)

Solved by SVN rev 8227   thanks calguy1000
      
avatar
Date: 2012-08-13 12:25
Posted By: Tapio Löytty (Stikki)

Confirming also that this works as it should. Closing post.
      
Updates

Updated: 2012-08-13 12:25
state: Open => Closed

Updated: 2012-08-11 08:05
resolution_id: 5 => 7

Updated: 2012-08-10 02:50
resolution_id: 11 => 5

Updated: 2012-08-09 09:45
resolution_id: => 11