Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[SOLVED] Size of Modal Form? 28 Jun 2015 09:29 #13301

Has anyone got any idea where I would change the settings for the Modal Box size? I have had a look and don't seem to be able to find what I should change. I simply want to make it bigger.

looked in the components modal.css and the template css on the joomla site and css for joomla?

Any help appreciated

Please Log in or Create an account to join the conversation.

Last edit: by jonathanbell.

[Solved] Size of Modal Form? 05 Jul 2015 02:22 #13306

Solved, found size constraint located in Joomla: /media/system/js in the modal.js file :)
/*
		MIT-style license
 @author		Harald Kirschner <mail [at] digitarald.de>
 @author		Rouven Weßling <me [at] rouvenwessling.de>
 @copyright	Author
*/
var SqueezeBox={presets:{onOpen:function(){},onClose:function(){},onUpdate:function(){},onResize:function(){},onMove:function(){},onShow:function(){},onHide:function(){},size:{x:800,y:600},sizeLoading:{x:200,y:150},marginInner:{x:20,y:20},marginImage:{x:50,y:75},handler:false,target:null,closable:true,closeBtn:true,zIndex:65555,overlayOpacity:.7,classWindow:"",classOverlay:"",overlayFx:{},resizeFx:{},contentFx:{},parse:false,parseSecure:false,shadow:true,overlay:true,document:null,ajaxOptions:

The change is made to size:{x:600,y:450). In my case I changed it to 800 x 600 and it works.

Please Log in or Create an account to join the conversation.

[Solved] Size of Modal Form? 05 Jul 2015 09:31 #13308

Remember that any upgrade to Joomla could overwrite that core file at any time if they make the slightest change.
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The following user(s) said Thank You: jonathanbell

Please Log in or Create an account to join the conversation.

[SOLVED] Size of Modal Form? Update 24 Mar 2016 04:08 #13866

I have found a better way than changing the java script for the squeeze box by changing the script in my view to the following. This is from a collection view. It is opening an action that will be associated with the incident through the creation_date/time. I wanted the modal bigger to show all the fields.
<td style="text-align:center">
<?php
$entered="$row->creation_date";
$com="/index.php?option=com_incidentmanager"; // Link to your component
$view="&view=actionitem"; // View within your component
$layout="&layout=actionitem"; // Layout item within your component
$tmp="&tmpl=component";// show only your component
$x="900"; // modal width
$y="800"; // modal height
$link="<a href=\"".$com.$view.$layout.$tmp."&entered=".$entered."\""; // combined link from string settings above
$settings=" class=\"modal\" rel=\"{size: {x: ".$x.", y: ".$y."}, closable: true}\">Link Name Here</a>";// modal settings and end of linkinfo
				echo $link.$settings;
?>
</td>

This of course could be written smaller. The above code just makes it easier to see what is happening.
<td style="text-align:center">
					<?php
				$entered=	"$row->creation_date";
				$link1="/index.php?option=com_incidentmanager&view=actionitem&layout=actionitem&tmpl=component&entered=".$entered."\"";
				echo "<a href=".'"'.$link1." "."class=\"modal\" rel=\"{size: {x: 900, y: 700}, closable: true}\">Assign Action</a>"						?>
				</td>

Anyhow, I am sure there are even cleaner ways to do this, But it works, and for a very junior scripter I'm happy.
The following user(s) said Thank You: krasy

Please Log in or Create an account to join the conversation.

[SOLVED] Size of Modal Form? Update 08 Apr 2016 01:56 #13879

I see Chef has added Modal Size when selecting Modal for links. Cheers Chef that makes life much easier. :)

Please Log in or Create an account to join the conversation.

[SOLVED] Size of Modal Form? Update 08 Apr 2016 11:17 #13880

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Absolutely !

And I did it specific for your post.
You announced it before me.

I am preparing a snapshot and a sub-step version for explaining this mini feature.
Coding is now a piece of cake
The following user(s) said Thank You: jonathanbell, polsl

Please Log in or Create an account to join the conversation.

[SOLVED] Size of Modal Form? Update 08 Apr 2016 13:32 #13883

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Coding is now a piece of cake
The following user(s) said Thank You: Romkabouter

Please Log in or Create an account to join the conversation.

[SOLVED] Size of Modal Form? Update 08 Apr 2016 23:51 #13893

Wow, thank you so much. Awesome as always.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.106 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started