X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Template file that display's admin menus? (https://forum.x-cart.com/showthread.php?t=17815)

Mr Bob 11-07-2005 09:47 PM

Template file that display's admin menus?
 
What's the template file that is supposed to display the admin menus?

Example menu (on the left):
Management
Products
Inventory
Help

Right menu
Authentication
Administration
Your profile

balinor 11-08-2005 03:12 AM

Open the site up in webmaster mode, it will tell you exactly which template is which.

TelaFirma 11-08-2005 03:17 AM

There are a few.

Left Product Management
/skin1/provider/menu.tpl

Left Admin
/skin1/admin/menu.tpl

Right Admin
/skin1/admin/menu_admin.tpl

others are:
/skin1/admin/menu_affiliate.tpl
/skin1/provider/menu_orders.tpl
/skin1/single/menu_profile.tpl

Just look around in the tempates directories... you will see them all.

Mr Bob 11-08-2005 09:07 AM

Quote:

Originally Posted by balinor
Open the site up in webmaster mode, it will tell you exactly which template is which.

- It only lists all of the loaded templates, not the specific ones for the each area.

After looking through all of the admin template menu files that TelaFirma posted (thanks btw), I think the template I need has to do with the {capture name=menu} code. It seems to display most of the output correctly, but it is missing the beginning of the table, as well as the closing.

For example, the entire left side menu outputs this:


balinor 11-08-2005 09:11 AM

If you move your mouse over a template name, it highlights it on the screen, so yes, it will show you EXACTLY what template is what.

Mr Bob 11-08-2005 09:21 AM

I just tried that, and it only highlights the menus over the tpl files listed above, but there is something more.

I think it is the capture file that needs to be changed. But I am not 100% sure, nor know which one it is.

TelaFirma 11-08-2005 12:43 PM

Look at the close capture tag, and then the display tag directly following it. This display tag will tell you what template the data betweent he capture tags are displayed in.

Mr Bob 11-08-2005 02:09 PM

I might not understand what you mean, but I don't see how that helps :/

What's the file used to actually take the information, and display it in the right format?

Quote:

single/home.tpl
skin1.conf [] global
meta.tpl
rectangle_top.tpl
common_js.tpl
head_admin.tpl
admin/menu.tpl
modules/Gift_Certificates/gc_admin_menu.tpl
menu.tpl
provider/menu.tpl
menu.tpl
menu.tpl
admin/help.tpl
menu.tpl
location.tpl
dialog_message.tpl
common_templates.tpl
admin/main/editor_mode.tpl
page_title.tpl
dialog-admin.tpl
authbox.tpl
menu.tpl
admin/menu_admin.tpl
menu.tpl
admin/menu_affiliate.tpl
menu.tpl
single/menu_profile.tpl
menu.tpl
poweredby.tpl
rectangle_bottom.tpl
bottom.tpl
main/prnotice.tpl
copyright.tpl

TelaFirma 11-08-2005 02:10 PM

menu.tpl

Mr Bob 11-08-2005 03:16 PM

My menu.tpl hasn't been modified....


Code:

{* $Id: menu.tpl,v 1.62.2.2 2005/02/15 09:09:21 max Exp $ *}
{capture name=menu}
{$lng.lbl_users}

{$lng.lbl_categories}

{if $active_modules.Manufacturers}
{$lng.lbl_manufacturers}

{/if}
{if $active_modules.Simple_Mode eq ""}{$lng.lbl_products}
{/if}
{$lng.lbl_orders}

{if $active_modules.News_Management}
{$lng.lbl_news_management}

{/if}
{$lng.lbl_statistics}

{if $config.Shipping.disable_shipping ne "Y"}
{$lng.lbl_shipping_methods}

{/if}
{$lng.lbl_taxing_system}

{if $active_modules.Customer_Reviews ne ""}
{$lng.lbl_edit_ratings}

{/if}
{$lng.lbl_countries}

{$lng.lbl_states}

{if $active_modules.Stop_List ne ""}
{include file="modules/Stop_List/stop_list_menu.tpl"}

{/if}
{if $active_modules.Benchmark ne ""}
{include file="modules/Benchmark/menu.tpl"}

{/if}
{if $active_modules.Feature_Comparison ne ""}
{include file="modules/Feature_Comparison/admin_menu.tpl"}
{/if}
{if $active_modules.RMA ne ""}
{include file="modules/RMA/admin_menu.tpl"}

{/if}
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_admin_menu.tpl"}

{/if}
{if $active_modules.Subscriptions ne ""}
{include file="modules/Subscriptions/subscriptions_menu.tpl"}

{/if}
{if $active_modules.UPS_OnLine_Tools ne ""}
{$lng.lbl_ups_online_tools}

{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_management menu_content=$smarty.capture.menu }


TelaFirma 11-08-2005 04:23 PM

I think that you need to be looking at menu.tpl in the /skin1/ directory, not the one in the /skin1/admin/ directory.

In the file that you just posted, that last line tells you what template that all the "capture" data is displayed in...

{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_management menu_content=$smarty.capture.menu }

menu.tpl - and since there is no directory in front of it, that means that it is in the root of the skin1 directory.

Mr Bob 11-08-2005 09:47 PM

When I change menu.tpl to menu_admin.tpl, and change every menu.tpl value in the admin folder, to point to menu_admin.tpl instead, I get a ton of errors saying warning, unable to read resource menu_admin.tpl :(

balinor 11-09-2005 03:37 AM

That's because there is no menu_admin.tpl, you need to create it.

Mr Bob 11-09-2005 07:44 AM

I wish it was that easy. I did crete menu_admin.tpl, and placed it in every possible directory. admin, skin1, skin1/admin, root, etc.

balinor 11-09-2005 07:46 AM

It goes in skin1. Needs to have some content in it. Make sure it has the correct permissions as well.

Mr Bob 11-10-2005 11:38 AM

Verified that it is in the right folder and permissions are correct.

It must be something inside of the standard tpl file that is making an issue with the code somewhere. :roll:


All times are GMT -8. The time now is 04:15 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.