SimplePortal

Customization => Custom Coding => Topic started by: turdspank on June 18, 2011, 05:40:54 AM

Title: Make Blocks Collapse by Default?
Post by: turdspank on June 18, 2011, 05:40:54 AM
Hello,
Is there a way to make blocks collapse by default?

Thanks
Title: Re: Make Blocks Collapse by Default?
Post by: grafitus on June 20, 2011, 09:14:42 AM
./Themes/default/Portal.template.php
Code: (Find) [Select]
$block['collapsed'] && empty($block['force_view'])
Code: (Replace) [Select]
($block['collapsed'] && empty($block['force_view'])) || in_array($block['id'], array(2, 5, 21, 8))
There are two instances of the code, you need to replace them both.

2, 5, 21, 8 are collapsed block IDs... You can set them.
Title: Re: Make Blocks Collapse by Default?
Post by: turdspank on June 20, 2011, 06:36:57 PM
Thanks for the reply.

However, it didn't work.  I'm using a non-default theme and it doesn't have Portal.template.php

I'm thinking I'll just have to dig through the css for the theme I'm using and make some changes, although I'm still open to any further suggestions.

Thanks again
SimplePortal 2.3.8 © 2008-2024, SimplePortal