Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 26

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 25.09.2004, 09:48   #1 (permalink)
Mamber
 
Join Date: Aug 2004
Posts: 67
drue is on a distinguished road
Default Hide right column when using editor on frontend

The editor.php is hardcoded at a width of 500. For some fixed width templates (JavaBeans included) this will cause problems with the full editor not showing on the frontpage (fck_editor) or visual blight to the template. I have some ideas on how to hack editor and my template to hide the righthand column when editting, however, I'm not sure this is the route I want to go. I don't normally like hacking the core code and that's the only way I can see this happening (I take that back... I could hack each editor I want to use also).

Before I go ahead with that, anybody got any better ideas (ones that don't require modification of the core code) on how to make the right hand column disappear when editting?
drue is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 25.09.2004, 10:22   #2 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 17
Mambo is on a distinguished road
Default Re: Hide right column when using editor on frontend

Quote:
Originally Posted by drue
The editor.php is hardcoded at a width of 500. For some fixed width templates (JavaBeans included) this will cause problems with the full editor not showing on the frontpage (fck_editor) or visual blight to the template. I have some ideas on how to hack editor and my template to hide the righthand column when editting, however, I'm not sure this is the route I want to go. I don't normally like hacking the core code and that's the only way I can see this happening (I take that back... I could hack each editor I want to use also).

Before I go ahead with that, anybody got any better ideas (ones that don't require modification of the core code) on how to make the right hand column disappear when editting?
Still a core mod but.

Maybe hack to open up edit as a new browser page would be neat without the rest of the sides top etc.

Maybe this as an option in admin would be good.
__________________
I am Mambo and I am Mambo powered!
Mambo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.09.2004, 12:45   #3 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 11
davidgal is on a distinguished road
Default Re: Hide right column when using editor on frontend

How about using htmlarea2 which has a full screen pop-up window for large editing area??
I have installed htmlarea2 on 4.5.1 stable and it is working like a dream both in front and back ends.
davidgal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.09.2004, 15:27   #4 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 17
Mambo is on a distinguished road
Default Re: Hide right column when using editor on frontend

Quote:
Originally Posted by davidgal
How about using htmlarea2 which has a full screen pop-up window for large editing area??
I have installed htmlarea2 on 4.5.1 stable and it is working like a dream both in front and back ends.
Not much core mod in that then!
__________________
I am Mambo and I am Mambo powered!
Mambo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.09.2004, 21:35   #5 (permalink)
Mamber
 
Join Date: Aug 2004
Posts: 67
drue is on a distinguished road
Default Re: Hide right column when using editor on frontend

will take another look at htmlarea2 then.... thanks. I'm not picky, I just want something that is easy for my users and powerful enough for me.
drue is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.10.2004, 22:33   #6 (permalink)
Junior Mamber
 
Sundance's Avatar
 
Join Date: Oct 2004
Location: Germany
Posts: 35
Sundance is on a distinguished road
Default Re: Hide right column when using editor on frontend

Hi drue,

there is another way of doing it which is fairly easy and quick to realize. The solution bases on the fact that your wrapper editor page has a unique ID within the Mambo database. Check the properties of your menu entry for your editor. You will see something like the following in the non-editable area of the properties:

Url: index.php?option=com_wrapper&Itemid=46

In this case the ID is 46. Now all you've got to do is open your template index.php page and search for the <td> tag of your right column. Around that tag you put this PHP code:

Code:
<?PHP if ( !($option=="com_wrapper" && $Itemid="46") ) { ?>
<td CLASS="right">
   <table WIDTH="100%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
      <tr>
         <td><?php mosLoadModules ( 'right' ); ?></td>
      </tr>
   </table>
</td>
<?PHP } ?>


Now the right column is only displayed if it is not your wrapped editor being called.

It works pretty well for me using TeamCal Pro within Mambo.

Best regards,
Sundance
__________________
They never killed us in Bolivia...
Sundance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hiding the right column in a template Kumagoro Template Discussions 23 10.07.2006 08:23
Right Column Display or Not Cynthia Blue Template Discussions 2 06.05.2005 06:07
Frontend nach der Useranmeldung 3xB Mambo 4.5 Allgemein 7 16.09.2004 08:35
HtmlArea_xtd im Frontend hannesito Module 2 28.07.2004 11:38
Right column width and event component question sceva Component 'How Do I' Questions 1 18.07.2004 01:55


All times are GMT +2. The time now is 13:54.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.