Right menu collapse disable - Beez20

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Karaburmication
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jan 21, 2011 8:48 pm
Contact:

Right menu collapse disable - Beez20

Post by Karaburmication » Fri Jan 21, 2011 9:00 pm

Hi,
how can I disable the "Close info" button? I want my right column to be visible all the time, without this "onclose" option.

I'm new to this Joomla stuff, so if you are willing to give me the asnwer, please keep that in mind.
Thanks!

micran
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Tue Aug 26, 2008 7:48 pm
Contact:

Re: Right menu collapse disable - Beez20

Post by micran » Fri Jan 21, 2011 9:35 pm

One should expect a template parameter for this, but I don't see one.
But you can edit file index.php in template folder

Look for these lines and comment them out or delete them (starting around line 189):

Code: Select all

<div id="close">
    <a href="#" onclick="auf('right')">
        <span id="bild">
            <?php echo JText::_('TPL_BEEZ2_TEXTRIGHTCLOSE'); ?></span></a>
</div>
Regards,
Micrantha

Karaburmication
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jan 21, 2011 8:48 pm
Contact:

Re: Right menu collapse disable - Beez20

Post by Karaburmication » Fri Jan 21, 2011 9:57 pm

Thanks a lot Micrantha, just what I was looking for!!!

retrogamer79
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jan 24, 2011 3:29 pm

Re: Right menu collapse disable - Beez20

Post by retrogamer79 » Mon Jan 24, 2011 3:33 pm

I found this useful aswell, thanks.

User avatar
ghanlon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 246
Joined: Tue Oct 02, 2007 2:39 am
Location: Florida
Contact:

Re: Right menu collapse disable - Beez20

Post by ghanlon » Mon Jan 24, 2011 8:16 pm

Awesome, I was just about to start another thread close to this.
The commenting out works great.

Here is what I have seen.
When I do not have anything on the left column, on the right I only see the closeinfo.
I never see the openinfo. granted closeinfo works it opens and closes the right column but the words never change. If I add content back to left column, the words change again on the right closeinfo/openinfo.

I am not sure if this should be a separate thread or not

emdep3000
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Mar 27, 2007 4:31 pm

Re: Right menu collapse disable - Beez20

Post by emdep3000 » Mon Feb 14, 2011 11:35 pm

This solution is not quite working. It thought it worked at first (tested on ie, firefox, chrome) but however, I found out today it gives js error on different machine Win7 + IE8. That is weird.

Does anyone know how to set the default as open?

xantof
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 02, 2009 8:52 am
Location: Toulouse, France
Contact:

Re: Right menu collapse disable - Beez20

Post by xantof » Sun Mar 27, 2011 7:00 pm

Hello all,

I agree, this is not a "clean solution" and does not remove the whole corresponding code.

I wish a "knowledgeable" person (Angie?) would explain how this open/close info as well as the other slide and tabs in html modules effects work in the new beez templates.

Some people say that they "hate" those functions. I'd like to know why! -- apart from the fact that they are not documented.

alexsutcliffe
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Apr 02, 2011 10:24 am

Re: Right menu collapse disable - Beez20

Post by alexsutcliffe » Sat Apr 02, 2011 10:30 am

Hi all,

Comment out the section in the template.php:

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez5/javascript/hide.js"></script>
<script type="text/javascript">
var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
var altopen='<?php echo JText::_('TPL_BEEZ5_ALTOPEN',true); ?>';
var altclose='<?php echo JText::_('TPL_BEEZ5_ALTCLOSE',true); ?>';
var bildauf='<?php echo $this->baseurl ?>/templates/beez5/images/plus.png';
var bildzu='<?php echo $this->baseurl ?>/templates/beez5/images/minus.png';
var rightopen='<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTOPEN',true); ?>';
var rightclose='<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?>';
</script>


Then also comment out further down:


<div id="close">
<a href="#" onclick="auf('right')">
<span id="bild">
<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?></span></a>
</div>


And that should disable it and not produce any JavaScript errors in IE.

To comment out use <!-- exampletexttocommentout -->

Hope that helps! This also works for Beez5 template in Joomla 1.6.

xantof
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 02, 2009 8:52 am
Location: Toulouse, France
Contact:

Re: Right menu collapse disable - Beez20

Post by xantof » Sat Apr 09, 2011 7:10 pm

@alexsutcliffe

I appreciate this explanation! I know I'm going to fiddle around with these scripts sometimes.

mdesan30
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Mar 28, 2009 5:37 pm

Re: Right menu collapse disable - Beez20

Post by mdesan30 » Sun Apr 10, 2011 8:47 pm

Does this also work for the left hand column as well, or does something else needs to be done? I would like to do something similar on the left hand side.

xantof
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Mar 02, 2009 8:52 am
Location: Toulouse, France
Contact:

Re: Right menu collapse disable - Beez20

Post by xantof » Tue Apr 12, 2011 11:15 am

On the templates we're talking about, the Open/Close info only happens on the right.
If you want to implement this on the left, my feeling is that you'd have to go deep in the template's code.
But then I am no PHP guru.

checksum
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat May 03, 2008 2:35 am

Re: Right menu collapse disable - Beez20

Post by checksum » Tue Apr 12, 2011 11:31 pm

Also make sure you remove this line:

$doc->addScript($this->baseurl.'/templates/beez_20/javascript/md_stylechanger.js', 'text/javascript', true);

palmerin
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Jun 16, 2011 4:58 pm

Re: Right menu collapse disable - Beez20

Post by palmerin » Thu Jun 16, 2011 5:04 pm

Hello all,

I'm an absolute Joomla beginner, and I'm making a test site.
I'm using the random image module to display a random banner from a folder with several of them. I'm using the beez_20 template, and the module is located on the top right.
I'm having the same problem with the "close" div.
I tried the first solution and now "CLOSE INFO" doesn't show up there any more, but there's a blank space where it used to be, and obviously it looks quite bad.
I was going to try the second suggested solution, but since I'm new to this CMS, I couldn't find the template.php file (I'm running 1.6, maybe this doesn't apply to this version).

Any help will be appreciated.

Thanks!

ktruhan
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jun 28, 2011 7:00 pm

Re: Right menu collapse disable - Beez20

Post by ktruhan » Thu Jun 30, 2011 11:38 pm

I cannot find the template.php, either. Where is this located?

IgorMM
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Wed Apr 23, 2008 6:43 pm

Re: Right menu collapse disable - Beez20

Post by IgorMM » Tue Jul 19, 2011 3:53 pm

hi
i deleted everthig that is wroiten here
yes close info Text is now deleted, but the space is still there, how to fix this problem?
betwen news on index and right module(posotion-6) there is still white blank space

ragrds
igor

full_monte
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Jan 23, 2011 12:53 am

Re: Right menu collapse disable - Beez20

Post by full_monte » Fri Sep 30, 2011 6:33 pm

What I want to do is change the text from OPEN/CLOSE INFO to OPEN/CLOSE PANEL, maybe even add a tiny pointy-finger graphic to it.
Any idea where to find that in Beez_20?
Niether the template.php nor the hide.js contains the words displayed

DejanSav
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Oct 02, 2011 2:33 pm

Re: Right menu collapse disable - Beez20

Post by DejanSav » Sun Oct 02, 2011 2:39 pm

I have the same situation and appreciate help. Thanks.
Dejan
Ditron

User avatar
duyet
Joomla! Guru
Joomla! Guru
Posts: 935
Joined: Wed Sep 21, 2011 8:21 pm
Location: on earth
Contact:

Re: Right menu collapse disable - Beez20

Post by duyet » Tue Oct 04, 2011 6:25 pm

In Joomla 1.7 the code

Code: Select all

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez_20/javascript/hide.js"></script>
is located in \templates\beez_20\index.php at lin 88

DejanSav
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Oct 02, 2011 2:33 pm

Re: Right menu collapse disable - Beez20

Post by DejanSav » Wed Oct 05, 2011 5:03 am

I found it. Thanks one more time :)
Dejan
Ditron

jannewmarch
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Aug 16, 2011 12:35 pm

Re: Right menu collapse disable - Beez20

Post by jannewmarch » Sun Oct 30, 2011 7:12 am

To change the text from "Open info" to something else: the code to set the string is in index.php in the beez_20 directory
var rightopen='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTOPEN',true); ?>'
The actual text is language dependent. For English, it is in the beez_20 language file
language/en-GB/en-GB.tpl_beez_20.ini
and is
TPL_BEEZ2_TEXTRIGHTOPEN="Open info"
Change this.

Jan

FlyingA
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sat Mar 26, 2011 12:08 pm

Re: Right menu collapse disable - Beez20

Post by FlyingA » Thu Nov 10, 2011 7:14 am

alexsutcliffe wrote:Hi all,

Comment out the section in the template.php:

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez5/javascript/hide.js"></script>
<script type="text/javascript">
var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
var altopen='<?php echo JText::_('TPL_BEEZ5_ALTOPEN',true); ?>';
var altclose='<?php echo JText::_('TPL_BEEZ5_ALTCLOSE',true); ?>';
var bildauf='<?php echo $this->baseurl ?>/templates/beez5/images/plus.png';
var bildzu='<?php echo $this->baseurl ?>/templates/beez5/images/minus.png';
var rightopen='<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTOPEN',true); ?>';
var rightclose='<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?>';
</script>


Then also comment out further down:


<div id="close">
<a href="#" onclick="auf('right')">
<span id="bild">
<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?></span></a>
</div>


And that should disable it and not produce any JavaScript errors in IE.

To comment out use <!-- exampletexttocommentout -->

Hope that helps! This also works for Beez5 template in Joomla 1.6.
Anyone willing to enter these bits of code with the "comment out" correctly done? I do not really understand how it is supposed to look. Deleting the three lines of code in the index.php a month just caused me 2 days of suffering until I remembered I had done that. Some browsers will open the page with the column closed and no way to open it.

raubenw
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 03, 2011 11:10 am

Re: Right menu collapse disable - Beez20

Post by raubenw » Thu Dec 22, 2011 11:58 am

Hi. I think my reply is a bit late. Thanks for the info. Helped me a lot. One question that was not answered is: Where is the "template.php" file? It's actually the "index.php" file for Joomla! 1.7. In the root of the installation directory. Don't know about the other versions.

handy andy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Fri Aug 06, 2010 1:56 pm

Re: Right menu collapse disable - Beez20

Post by handy andy » Fri Feb 17, 2012 9:47 pm

FlyingA wrote:
alexsutcliffe wrote:Hi all,

Comment out the section in the template.php:

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez5/javascript/hide.js"></script>
<script type="text/javascript">
var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
var altopen='<?php echo JText::_('TPL_BEEZ5_ALTOPEN',true); ?>';
var altclose='<?php echo JText::_('TPL_BEEZ5_ALTCLOSE',true); ?>';
var bildauf='<?php echo $this->baseurl ?>/templates/beez5/images/plus.png';
var bildzu='<?php echo $this->baseurl ?>/templates/beez5/images/minus.png';
var rightopen='<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTOPEN',true); ?>';
var rightclose='<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?>';
</script>


Then also comment out further down:


<div id="close">
<a href="#" onclick="auf('right')">
<span id="bild">
<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?></span></a>
</div>


And that should disable it and not produce any JavaScript errors in IE.

To comment out use <!-- exampletexttocommentout -->

Hope that helps! This also works for Beez5 template in Joomla 1.6.
Anyone willing to enter these bits of code with the "comment out" correctly done? I do not really understand how it is supposed to look. Deleting the three lines of code in the index.php a month just caused me 2 days of suffering until I remembered I had done that. Some browsers will open the page with the column closed and no way to open it.
Hi, where do I place <!-- exampletexttocommentout --> ?

I have tried placing it in a few different places but not the right place.

Appreciate help,

Andy

User avatar
duyet
Joomla! Guru
Joomla! Guru
Posts: 935
Joined: Wed Sep 21, 2011 8:21 pm
Location: on earth
Contact:

Re: Right menu collapse disable - Beez20

Post by duyet » Sat Feb 18, 2012 5:40 am

For example if you want to remove the "Open/Close", then comment it out as following:

Code: Select all

<!--
<div id="close">
<a href="#" onclick="auf('right')">
<span id="bild">
<?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?></span></a>
</div>
-->
It will be treated as HTML comment and will not be shown in your browser.

handy andy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Fri Aug 06, 2010 1:56 pm

Re: Right menu collapse disable - Beez20

Post by handy andy » Sat Feb 18, 2012 1:58 pm

Thank you very much,

I can now complete the site without changing the template.

Much appreciated.

Andy

FlyingA
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sat Mar 26, 2011 12:08 pm

Re: Right menu collapse disable - Beez20

Post by FlyingA » Sat Feb 18, 2012 8:59 pm

And how do you handle the browsers (chrome on mac) that open the website with the column closed and no way to open it?

handy andy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Fri Aug 06, 2010 1:56 pm

Re: Right menu collapse disable - Beez20

Post by handy andy » Mon Feb 20, 2012 3:42 pm

Hi,

I hadn't thought of other browsers so I installed chrome and the site works fine.

I am using windows maybe it's a problem with mac version?

Andy

DuFFi_SK
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Tue Feb 07, 2012 7:20 pm
Location: Slovakia

Re: Right menu collapse disable - Beez20

Post by DuFFi_SK » Wed Mar 21, 2012 10:10 pm

IgorMM wrote:hi
i deleted everthig that is wroiten here
yes close info Text is now deleted, but the space is still there, how to fix this problem?
betwen news on index and right module(posotion-6) there is still white blank space

ragrds
igor
Try to find position.css and change the wrapper width - line 66

FrankA3
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 106
Joined: Thu Feb 14, 2008 11:19 am

Re: Right menu collapse disable - Beez20

Post by FrankA3 » Wed Jan 09, 2013 2:52 am

If you just want it working..... same for beez5 or 20

To reduce space wasted and stop jumping around....

Editing file "css/position.css" in template "beez5"
wrapper from 53% to 75%
wrapper 2 72 to 90

edit beez 5 style setting wrapper small to 75 other to 90

– plus language file root/language/en-GB TPL_BEEZ5_TEXTRIGHTCLOSE="Close info" to “Show/Hide Menu” (or whatever text you want, this wraps nicely... assuming your text was not changing of course)

Would be nice if someone could fix this properly

HrmWie
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jan 16, 2013 8:15 pm
Location: NL

Re: Right menu collapse disable - Beez20

Post by HrmWie » Thu Jan 17, 2013 10:23 am

In Joomla 3.0 Beez3 it is very simple:
In Module Manager unpublish the module "All Modules" (only this one, do not unpublish all modules).
Do not know if this works for earlier versions.
regards
HrmWie


Locked

Return to “Templates for Joomla! 2.5”