admin menu not collapsing

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
11/8/2015 8:48:56 AM
Gravatar
Total Posts 28

admin menu not collapsing

Hi

I have recently switched to using the Gloriatech Hi5 skin. Generally things are OK except that the admin menu bar at the base of the screen won't collapse. This can be a problem because it obscures some of the options shown in the footer of this skin.

Can you point me to the likely cause and if possible a cure.

Thanks

Andy

11/9/2015 10:10:42 AM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: admin menu not collapsing

Andy,

I believe the problem is caused by a JavaScript error caused by the SuperFish Jquery plugin.

  • To fix it you will need to add IncludeJQueryMigrate="true" to the ScriptLoader control at line 22.
  • Also replace line 24 and 25
    <script type="text/javascript" src="Data/Sites/1/skins/hi5-skin/js/bootstrap.js"></script>
    <script type="text/javascript" src="Data/Sites/1/skins/hi5-skin/js/bootstrap-carousel.js"></script>
    with
    <portal:SkinFolderScript runat="server" ScriptFileName="js/bootstrap.min.js" />

The bootstrap.js file include the carousel script in it, so there's no need to include it a second time, and using the SkinFolderScript control will mean you can use the skin for child sites if needed, instead of only in site 1.  Altogether, a better setup.

Hope this helps,
Elijah

11/9/2015 12:29:11 PM
Gravatar
Total Posts 28

Re: admin menu not collapsing

Elijah

Thanks for the suggestions. However - no change!

Looking at the 'Portal:SkinFolderScript' control is the path for the Bootstrap.min.js file correct? It doesn't seem to match with a path on the site

Regards

Andy

11/9/2015 12:49:47 PM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: admin menu not collapsing

Andy,

Yes, the SkinFolderScript control uses the same skin path as the selected skin, so it should always match with site path.

As for the trouble you're still experiencing, could you send a link to the site so I can look at it?  It's hard to tell what's wrong otherwise.

Thanks,
Elijah

11/9/2015 1:16:34 PM
Gravatar
Total Posts 28

Re: admin menu not collapsing

Elijah

Thanks

site is:   andyfrankland.co.uk

User:   guestadmin@admin.com

PW:     guest

You will need to be patient I'm afraid - I'm having an unrelated problem with performance on the hosted site.

 

Regards

 

Andy F

11/9/2015 1:30:31 PM
Gravatar
Total Posts 28

Re: admin menu not collapsing

Elijah

Having second thoughts about leaving login details on an open forum! so have locked the user for the time being.

If you can email me when you have the time to have a look at the site then I will unlock the user.

Many thanks 

 

Andy

11/9/2015 1:58:59 PM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: admin menu not collapsing

Andy,

I don't think I'll need login credentials at this point in time.

So what I'm seeing as I'm looking at this is several 404 not found errors for several files including JS files, and one JS error caused by the call for the carousel that's broken because the JS files aren't being loaded.  The reason they aren't being loaded is because the script tags have a hard coded path to the wrong skin. The skin you're using is called "gloriatech-hi5", but the script tags are referencing "hi5-skin".

Did you replace those script tags with the control I mentioned before? I also noticed that I said to call "js/bootstrap.min.js" when it should have been "js/bootstrap.js".  If you replace those tags with the control that should fix the 404 not found errors and the admin bar should work.

Elijah

11/9/2015 2:32:30 PM
Gravatar
Total Posts 28

Re: admin menu not collapsing

Elijah

Success!

The reason why you are seeing the 404 errors is that I haven't yet altered the live system. I have been trying your suggestions on my local development setup. Sorry I didn't make that clear.

The local setup now works so I can upload the changes.

 

Many thanks for your help.

 

Regards

Andy

You must sign in to post in the forums. This thread is closed to new posts.