HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


How to hide right_panel with CSS?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#111246 (In Topic #22347)
TQ
Avatar

Honoured member

Hi All,

I have a few pages (mainly tables) in the 'Welcome' section that I would prefer to be displayed without the right panel and came across the 'Calling all Coders' thread.

Close to the end I found just what I was looking for (".page_running_downloads #panel_right { width: 150px; }") in this post #86773 or so I thought. I have used this example in the global.css:

... replacing .page_running_downloads with the codename of the page I want to hide the panel for and set the width: 0px eg:​

Remove panel_right if page codename is kenwoodxref

Code

.kenwoodxref #panel_right {
width: 0px !important;
}
It doesn't work for me so I've clearly not understood what I should be doing and I cannot find any other reference to this technique in either the forum or documents.

Could someone please enlighten me?

Thanks as always ..

TQ
Back to the top
 
Posted
Rating:
#111247
Avatar

.page_running_kenwoodxref #panel_right (...)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111249
TQ
Avatar

Honoured member

That did it Chris, thanks.

I had to add margin-right: 0px; to get rid of the right_panel in the RH margin but all sorted.

I had envisaged that the centre column would expand to fill the space but that's not the case. What should I do to make this happen?

Am I taking the wrong approch?
  • Should I create a new 2 column zone and put all the pages that I don't want to display the RH column into that?
     
  • Is there another method that would stop the RH column loading? I realise now that the column is only hidden rather than not being loaded as I have a js refresh for an image in the RH column that is still running?
Any advice would be much appreciated, as with all my questions, if I'm taking the wrong approch, please don't hesitate to tell me.

Thanks

TQ
Back to the top
 
Posted
Rating:
#111252
Avatar

You're better off to wrap the panel's Comcode with {+START,IF,{$NEQ,{$PAGE},kenwoodxref,example1,example2,example3}}...{+END}

The default templates consider a blank panel as not rendered, and the spacings adapted accordingly.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111253
TQ
Avatar

Honoured member

Thank you Chris, it took me a while to work out how to do it but I learnt a lot in the process.

I had to wrap it around the helper panels as well otherwise the mainpage didn't expand to the full width, is that expected or is it an error on my part?

TQ
Back to the top
 
Posted
Rating:
#111254
Avatar

Normally you can just do it in the panel page itself


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: