Accessory

Archived
Forum
(read-only)

Christopher Imrie does not actively monitor this forum
(but you can still get help from other EE users).

EE 1
EE 2
morePreview

Back to this add-on's main page
View Other Add-ons From Christopher Imrie

     

You must be logged in to post.

CP errors on Accessories page

Bug Report

Nuno Albuquerque
Nuno Albuquerque

Hey, cool extension. I’m getting an error on the CP>Accessories screen when I put the morepreview folder in the third_party folder.

I am using version 1.1 and EE 2.1.4 beta aprill 11th build.

I tracked it down to the hide_accessory_tab() method. I commented it out and used technique to hide it instead and it fixed the problem.

http://forrst.com/posts/Hide_Tab_in_ExpressionEngine_2_Accessory-iic

The set_sections() method has a purpose after all.

function set_sections()
    
{
        $this
->sections[] '[removed]$("#accessoryTabs a.morepreview").parent().remove();[removed]';
    
Moresoda
# 1
Developer
Moresoda

Hi Nuno,

We havent tested with EE2.1.4 Beta yet, so thanks for the heads up.  In 2.1.3 you are able to return nothing in the set_sections_method(), and thus use a global JS function to hide the tab button that is added by EE.

We’ll incorporate your change into the addon.

Thanks!

- Chris
(@chrisimrie)