There is an option in most browsers called “Shrink-to-Fit”. This is a page setup configuration that, if turned on, will attempt to scale the web page in size to make it fit on the selected paper size you are printing to. The scaling mechanism also attempts to scale it to a size that will fit on the least amount of pages. Although this does make sense when you are trying to print an actual web page, it can be a nightmare for web application developers who are trying to control the print job. For example, say your web application produces a Invoice for a customer. As a developer you want to try to control the layout of the invoice so you probably have a print.css file and you already have taken into account the page layout specific for a print job.
Continue reading
Tag Archives: plugin
Joomla-Detect Logout from Ajax
If you have done some scripting with MooTools and Ajax you may find the following information useful. As it is, I could not find an easy way to detect when a user was logged out of Joomla in the administration control panel for an Ajax request.
Continue reading
Joomla Module with Component Install
Looking for a way to package a module inside a component package, I came across the following technique. Re-use the JInstaller class and the com_installer install from folder code as well as the unpack methods to unzip.
Continue reading
Joomla 1.0 Content Missing
Was having an issue viewing some content on a Joomla 1.0 site. Noticed that the server code was php5.3. There are some issues with some versions of Joomla with php5.3. For the 1.5 branch, the latest versions work but the earlier ones do not as late as 1.5.14.
At any rate, without errors showing up it is often hard to find the solution without hacking core code. One such solution is to downgrade php which may be simple in a cgi environment.
Another possible solution was found at this blog posting.
The basic idea is to change the core Joomla 1.0 file includes/Cache/Lite/Function.php. By modifying the line that looks like:
$arguments = func_get_args();
with
$arguments = func_get_args(); $numargs = func_num_args(); for($i=1; $i < $numargs; $i++){ $arguments[$i] = &$arguments[$i]; }
The content becomes visible. There are other issues that could arise due to improper database content Finish Publishing Dates, and clearing the browser cache as well as site cache.
Update:
For those of you interested in converting Templates, Modules, Components, or Plugins from 1.0 to 1.5 – please check out this page