Home Pricing Glossary Sitemap Contact Support Login Search
Home arrow Site Map arrow Index arrow CMS arrow Bug Fixes 
ALL |0-9 |A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

Index arrow CMS arrow Bug Fixes

Get rid of main text box Joomla Print E-mail

This is the best solution for getting rid of the "main text" box in Joomla and MamboI've tried it and it woks perfectly unlike other forum threads I've read.
 

Re: Getting rid of "Main Text" in editor
« Reply #1 on: May 26, 2006, 06:32:11 AM »  

--------------------------------------------------------------------------------
I just took a look and it would seem that it can be acheived by commenting out one line

in /components/com_content/content.html.php

around line 2249 in my editor  (within the function editContent )

you can simply comment out the call for the second editor

Code:
editorArea( 'editor2',  $row->fulltext , 'fulltext', '600', '400', '70', '15' ) ; e.g.

Code:
// editorArea( 'editor2',  $row->fulltext , 'fulltext', '600', '400', '70', '15' ) ;
but instead, to give some more flexibity, I would place it in a conditional such as:

Code:
           if ( $_REQUEST['twoedits'] == "yes" ) {
    editorArea( 'editor2',  $row->fulltext , 'fulltext', '600', '400', '70', '15' ) ;
            }
This would allow a second link to be created with &twoeditss=yes added to the url which would give the two editor windows for you. (or you can just add it to the url in the browser for occasional use )

so if the normal link looks like
sitedomain/index.php?option=com_content&task=new&sectionid=1&Itemid=13
the optional link for reverting to two editor windows would be
sitedomain/index.php?option=com_content&task=new&sectionid=1&Itemid=13&twoedits=yes

 
Web Site Design Services Canada - SEO Vancouver BC Webmaster
Copyright © 1999-2008 | 6805 Fleming Street Vancouver, British Columbia, Canada V5P 3H4
Toll Free Phone: 1-800-680-1358 - Toll Free Fax: 1-801-740-8940 Privacy | Contact | Archive