We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Publishers Clearinghouse (remove weblogs from publish tab)

Development and Programming

Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

I’ve found clients are confused when using the Pages module to see those weblogs in the publish tab. This extension allows you to remove weblogs from said tab. This only works on the hover state - if you click the publish tab and go to the resulting page you will see all your weblogs.

Special thanks to the_butcher for allowing me to trim 500+ lines of code from the extension 😉

Usage Step 1: Enable the extension, and in the settings add all the weblog names you would like to hide. You can select multiple weblogs from the list. Step 2: Select which member groups you would like this extension to apply to (other groups will see all weblogs in the publish tab). Step 3: Enjoy!

Requirements EE 1.5 or higher. This has only been tested on 1.6.1, but it should work fine on 1.5 or higher. Please let me know if you have any issues.

Current Version 1.2

Version History

1.2 - Changed extension to allow weblogs to be hidden for specific member groups (Thanks Zac G.!)

1.1.2 - Changed the extension priority to the lowest possible to limit extension conflicts.

1.1.1 - Modified the extension to work with PHP4 (required PHP5 previously).

1.1.0 - Changed the way you choose weblogs in the settings area - much easier to hide a large number of weblogs, or weblogs with long names.

1.0.1 - removed some unnecessary code, and fixed a PHP warning if the extension was enabled and you didn’t have any weblogs in the settings.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

So, this takes the place of Mark Huot’s “Hidden Weblogs” extension (which was/is a handy extension but didn’t seem to get updated to work with 1.6)?

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

Actually I didn’t realize there was an extension that already did this.

I’m actually reworking the extension - there are different ways of doing it and I want to give the option to hide entries in the edit menu as well (although as I delve deeper I’m not sure if this is going to work).

The release above literally only hides them from the hover publish tab - if you click on that tab and get to the publish page it still shows all the weblogs. Very far from perfect I know…

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

You might want to take a look at Mark’s Hidden Weblogs extension to see how he went about doing it - might spark an idea. I’m not sure why Mark hasn’t updated his for 1.6, but if yours works I’ll use yours because I could really use it on a few sites I have going right now!

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

Currently it works but only hides from the hover publish tab (not on the resulting page if you click on the publish tab). I’m not sure if Mark’s did more than that? I’m not going to have time to do any more until this weekend. Weblog entries show in the edit page, even if they’re on the hidden list.

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

I’ve updated the way you choose weblogs to hide - now you can easily hide many weblogs (or ones with long names).

It doesn’t function any differently at this point so if you’re happy with what you have there’s no need to update.

       
Stijn Blomme's avatar
Stijn Blomme
3 posts
17 years ago
Stijn Blomme's avatar Stijn Blomme

Thanks a lot for this, Brian!

I found this very helpful as solution for hiding one-page-weblogs, which may be very confusing for the end-user.

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

I’ve updated this extension to work with PHP 4 - it previously worked with PHP 5 only. If you’ve already downloaded and it’s working fine, no reason to re-download this version.

       
Brandon C.'s avatar
Brandon C.
43 posts
17 years ago
Brandon C.'s avatar Brandon C.

This doesn’t work with the Edit Menu extension found here:

http://ellislab.com/forums/viewthread/68277/

When I have both enabled, it takes away the sections from the edit menu as well. Any idea why it’s doing that?

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

Let me look into that - I’ve think I know why it’s happening. It will be probably the end of this week. Oops!

       
Brandon C.'s avatar
Brandon C.
43 posts
17 years ago
Brandon C.'s avatar Brandon C.

Awesome, thanks much 😊

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

Hi blcarson,

I’m pretty sure I know what’s going on - I’ve posted a request in the edit menu thread for Cocoaholic and I’m posting a new version 1.1.2 at the top of this thread. We need to get an updated version of his extension as well before we can fix this.

       
Brandon C.'s avatar
Brandon C.
43 posts
17 years ago
Brandon C.'s avatar Brandon C.

Awesome, thanks for the update 😊

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

Cocoaholic updated his extension so if you use these two new ones together you should be good to go.

       
Brandon C.'s avatar
Brandon C.
43 posts
17 years ago
Brandon C.'s avatar Brandon C.

That worked great, thank you!

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.