Page 1 of 1

New View - PICTURE VIEW

Posted: 30 Mar 2010, 16:18
by cohenu
When you go to file view there is 2 preview images and there is no link,so I change it and this is what I have changed so far:

Code: Select all

        if ((int)$this->tmpl['display_file_view'] == 1) {
   
		$images = '<table border="0" width="65%">';

        			//Specific icons
			if (isset($valueDoc->image_filename_spec1) && $valueDoc->image_filename_spec1 != '') {
				$iconPath	= PhocaDownloadHelper::getPathSet('icon');
				$iconPath	= str_replace ( '../', JURI::base(true).'/', $iconPath['orig_rel_ds']);
				$images .= '<tr><td width="32%"><a href="'.$iconPath . $valueDoc->image_filename_spec1.'" target="_blank"><img src="'.$iconPath . $valueDoc->image_filename_spec1.'" alt="" width="100%" height="130px"/></a></td>';
                $images .= '<td width="1%">&nbsp;</td>';
            } 
			if (isset($valueDoc->image_filename_spec2) && $valueDoc->image_filename_spec2 != '') {
				$iconPath	= PhocaDownloadHelper::getPathSet('icon');
				$iconPath	= str_replace ( '../', JURI::base(true).'/', $iconPath['orig_rel_ds']);
				$images .= '<td width="33%"><a href="'.$iconPath . $valueDoc->image_filename_spec2.'" target="_blank"><img src="'.$iconPath . $valueDoc->image_filename_spec2.'" alt="" width="100%" height="130px"/></a></td>';
			} 
            $images .= '</tr>';
            $images .='</table><br/>';

        echo $images;
	}
instead to open those pictures in a new blank page, is it possible to to open it in a new view? so the pictures will be "inside" the site?

Re: New View - PICTURE VIEW

Posted: 01 Apr 2010, 14:59
by Jan
Hi, sorry I don't understand which pictures you mean? do you mean preview of pictures. If yes, then you can skip the modal of popup but yes, then new view must be created in MVC of the component in frontend + navigation back ... but as I didn't do such modification, cannot give any advice there :-(

Jan

Re: New View - PICTURE VIEW

Posted: 02 Apr 2010, 18:17
by cohenu
Yes the preview picture 10x again Jan I will try to do it...