Post by Brook » Mon Jun 21, 2010 7:43 am

I have OpenCart 1.4.7 installed...

How do I make the "Image Manager" container window larger?

It appears to me that the "Image Manager" (FileManager) displays in a separate container (maybe an iFrame, not sure) that prevents me from making the container window any larger. How do I make the parent iFrame Container larger, ex. making the iFrame container twice the size that it is by default. Not sure if I understand how to resize the main container parent window. I think that I understand that I can resize the left column and the right column within the window, but is it possible to make the main container window larger?

I have tried to change the admin\view\template\common\filemanager.tpl file by increasing the container height and giving the container a width, with no success.

Ex increased container height from 340px to 500px and tried to give the container a width of 600px

admin\view\template\common\filemanager.tpl

Code: Select all

#container {
	padding: 0px 10px 7px 10px;
	height: 500px;
	width: 600px;
}
Not sure what else to do... Any suggestions?

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by DEHiCKA » Wed Jul 07, 2010 8:59 pm

\admin\view\template\catalog\product_form.tpl
in function image_upload change width and height to whatever you want.
Then change container, column_left and column_right sizes in the filemanager.tpl

Newbie

Posts

Joined
Wed Jan 20, 2010 9:29 pm

Post by Brook » Wed Jul 07, 2010 11:10 pm

Thank you very much. Your post worked great.

Active Member

Posts

Joined
Wed Feb 24, 2010 12:15 am

Post by jorkie » Wed Oct 27, 2010 11:01 am

Making the default size of the image manager window larger... this post saved me a lot of time! Thanks!

Newbie

Posts

Joined
Wed Sep 29, 2010 12:36 pm

Post by stewiek » Fri Nov 19, 2010 10:21 am

the code is not applicable for the latest version of opencart.

can anyone update on how to make the image manager larger?

New member

Posts

Joined
Mon Nov 09, 2009 4:04 pm

Post by PetracheNicolae » Tue May 31, 2011 6:05 pm

stewiek wrote:the code is not applicable for the latest version of opencart.

can anyone update on how to make the image manager larger?
hello. after i have sean the solution here i decided to give it a try in opencart 1.9.5 since i needed this verry bad and in 1.5 is not fixed as well
here it is what i did
go to /admin/view/template/catalog/product_form.tpl
replace the lines from 825 to 829 with

Code: Select all

      bgiframe: false,
		width: 1300,
		height: 600,
		resizable: true,
		modal: false
save, than go to admin/view/template/common/filemanager.tpl
replace lines 27 to 51 with

Code: Select all

#container {
	padding: 0px 0px 0px 0px;
	height: 530px;
}
#menu {
	clear: both;
	height: 29px;
	margin-bottom: 3px;
}
#column_left {
	background: #FFF;
	border: 1px solid #CCC;
	float: left;
	width: 30%;
	height: 520px;
	overflow: auto;
}
#column_right {
	background: #FFF;
	border: 1px solid #CCC;
	float: right;
	width: 68%;
	height: 520px;
	overflow: auto;
	text-align: center;
you can use what values you may require depending on your screen resolution -mine is 720p lcd, that's why i used 1300
olso, setting in first file resizable: true, makes it resizable in the windows.
all the credit goes to DEHiCKA for this (THANKS)
\admin\view\template\catalog\product_form.tpl
in function image_upload change width and height to whatever you want.
Then change container, column_left and column_right sizes in the filemanager.tpl

Attachments

image manager.png

image manager.png (242.72 KiB) Viewed 6688 times


New member

Posts

Joined
Tue May 24, 2011 5:40 am

Post by Ozfarmer » Thu Oct 27, 2011 1:57 pm

Anybody worked out how to do this for 1.5.1.3?

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by uksitebuilder » Thu Oct 27, 2011 2:49 pm

I haven't tested this in 1.5.1.3 but it should work

http://forum.opencart.com/viewtopic.php?f=131&t=38148

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by frankleng » Thu Aug 14, 2014 1:39 am

There files are related.
<file name="admin/view/template/catalog/category_form.tpl">
<file name="admin/view/template/catalog/product_form.tpl">
<file name="admin/view/template/catalog/option_form.tpl">
<file name="admin/view/template/catalog/manufacturer_form.tpl">

Active Member

Posts

Joined
Sun Apr 22, 2012 5:49 pm

Post by biomall » Fri Aug 15, 2014 6:51 am

Created a vqmod for this, download and usage are free : http://web.ite.bg/blog/image-manager-wi ... extension/

SEO optimization, Opencart Development, Web Site Design, BioMall.bg


User avatar
Newbie

Posts

Joined
Tue Apr 08, 2014 6:44 pm
Location - Bulgaria, Sofia
Who is online

Users browsing this forum: No registered users and 123 guests