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' ) 
&& JRequest::getCmd('task') != 'edit' ) : ?>
<div id="rightcol">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>

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)

 


blog comments powered by Disqus
 

Build a Successful Joomla Website Today

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.



Get Joomla SaaS Hosting

Free Joomla Book

Sign up for Joomla Hosting at Simplweb and we'll send you a free signed copy of the best-selling Joomla - A User's Guide when your subscription starts!

Get Joomla Tips by RSS or Email

 

Joomla 1.6 Book

Get the NEW Joomla 1.6 Book

The new 3rd edition of the best selling Joomla 1.6 book is now available.

New and updated, its everything you need to know about Joomla 1.6!

Get it now from Amazon!

jenbookJoomla! Start to Finish Book

When you're ready to take your Joomla sites to the next level, try Joomla! Start to Finish: How to Plan, Maintain and Execute Your Website.

 

 

Teaching Sells