| Hide Columns When Editing the Front End of Joomla |
| Tuesday, 20 July 2010 10:21 |
|
Editing articles from the front end of a Joomla website is one of its most useful features. Sometimes, however, if you have both a left and right column, when you try to edit, the editor screen/panel will overlap the right columns and make it difficult to read. There is a simple trick to you do to hide columns, by adding a conditional statement to the place in the template index.php where the right column occurs. Somewhere you will probably have a statment where the right column module output is processed. <?php if ($this->countModules( 'right' ) You can see with the addition of && JRequest::getCmd('task') != 'edit' it will also check to see if an editor is running. If there is, the right column will not be shown and there will be more space for the editor (assuming the template has fluid center column) Â |
Want a Joomla website, but don't have an IT department?
Simplweb provides fully managed Joomla hosting on high performance cloud servers. Unlimited support on Joomla, managed backups, security and updates.
Find out more how Simplweb can make Joomla... "Simpl" and start building a successful Joomla webiste with our free month trial. We'll send you some more information and you'll be first in line join the easiest and fastest way to learn Joomla.