Jump to content

Admin Navigation Menu


Allan

Recommended Posts

A quick search reveals that I posted a fix to this in the Old Idea being Rehashed thread in the Addons area. ;)

To fix the admin nav, simply do the following

FIND

<li style="padding: 0; margin: 0;"><a class="menu" href="#">
<img src="<?php echo  SITE_URL?>/admin/lib/layout/images/settings_icon.gif" />Addons</a>
<ul style="padding: 0; margin: 0;">
<?php echo $MODULE_NAV_INC; ?>
</ul>
</li>

ADD AFTER

<li style="padding: 0; margin: 0;"><a class="menu" href="#">
  <img src="<?php echo  SITE_URL?>/admin/lib/images/shopadmin.png" />Shop Admin</a>
  <ul style="padding: 0; margin: 0;">
<li><a href="<?php echo SITE_URL?>/admin/index.php/ShopAdmin/shopsoverview">Overview</a></li>
  </ul>
</li>

That will fix the sidebar nav for the admin page. Realistically, this Pilot SHop module needs it's own admin module due to the fact that every single time you upgrade your website, you are going to over write that file and have to come back in later and re add that code to the admin/templates/core_navigation.tpl file. It needs to be made in the admin panel like Simpilot's Events Module.

I am still trying to figure outhow to do just that. Once I do, I will fix the files and give them to the chap who reuploaded the file. I am really hoping to get everything on that module fixed so we can all have one good file and get rid of all the others that need fixing.

Link to comment
Share on other sites

No probs. I would recommend putting the code that I gave you after the code that I showed you. I find it works best that way really.

And really it has nothing to do with Simpilot's modules. I was just comparing how the author of the Pilot shop modded his module verses the correct way like Simpilot did.

Hope you get it sorted out.

Now please note, when you click the over view for pilot shop, you are going to get an error. That error will go away once you add a type, a shop, and a product. I think it needs coded so that it shows an error page explaining what is wrong rather than toss out a error code.

Link to comment
Share on other sites

  • Administrators

What you guys can do is restore the original core_navigation file on the admin side and then add the correct code to the pilot shop admin module file;

public function NavBar()
   {
       echo '<li><a href="'.SITE_URL.'/admin/index.php/PilotShop">Pilot Shop</a></li>';
   }

I am not sure the "PilotShop" part is right, that should be the name of the module on the admin side, but this will add a link for it under the "AddOns" section of the menu and never be overwritten in an update. B)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...