Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Locating Parent Files in Firebug?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-08-2010, 03:19 PM
 
SID357 SID357 is offline
 

eXpert
  
Join Date: May 2010
Posts: 205
 

Default Locating Parent Files in Firebug?

I have some very simple code edits I've been trying to make but for the life of me, I can't find where the code is. I looked in main.css, styles.css, css this, tpl that, js files, so on and so forth.

Is there an app or mod or any way in Firebug to locate the parent file? The coding isn't so much a problem as just finding out where the #$%! it is. lol - it's killin me.

http://tinyurl.com/24tzzj2
Reply With Quote
  #2  
Old 07-08-2010, 03:58 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Locating Parent Files in Firebug?

menu_dialog.tpl. What goes there is setup with this line

{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu menu_type="menu"}

in categories.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 07-08-2010, 04:45 PM
 
SID357 SID357 is offline
 

eXpert
  
Join Date: May 2010
Posts: 205
 

Default Re: Locating Parent Files in Firebug?

Thanks for the reply Steve.

so, categories.tpl shows...


Code:
{* $Id: categories.tpl,v 1.35 2009/05/12 07:37:15 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} {if $active_modules.Flyout_Menus} {include file="modules/Flyout_Menus/categories.tpl"} {assign var="additional_class" value="menu-fancy-categories-list"} {else} <ul> {foreach from=$categories_menu_list item=c name=categories} <li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li> {/foreach} </ul> {assign var="additional_class" value="menu-categories-list"} {/if} {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}

I see the last line you referred to. How do I get to the guts?

I'm not too bad at html, but the whole smarty thing and locations are puzzling.

I can edit it just fine in Firebug, but obviously that does little good in the grand scheme of things. Seems humorous that I can find and edit exactly what I'm looking for in a free add on, but can't find jack squat in 500 dollar software. lol
Reply With Quote
  #4  
Old 07-08-2010, 06:09 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Locating Parent Files in Firebug?

categories.tpl calls menu_dialog.tpl with that last line and passes to it the language variable $lng.lbl_categories (which holds word "Categories") as title, then menu_dialog.tpl displayes "title"

P.S. you can edit "Categories" word by editing the language variable "lbl_categories" from admin/languages
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
SID357 (07-11-2010)
  #5  
Old 07-08-2010, 09:30 PM
 
SID357 SID357 is offline
 

eXpert
  
Join Date: May 2010
Posts: 205
 

Default Re: Locating Parent Files in Firebug?

fabulous.

admin/languages from where dude? If it's in the x-cart admin language then all it is, is select languages *german* *english* bla bla bla, so on and so forth.

If it's FTP admin/languages.php then it contains nothing regarding to "categories" or anything else in the #left-bar, #right-bar or anywhere else in the file.

It has to be somewhere right?

<h3>Categories<h3> I mean, this line has to be in, some file, somewhere, right?

<filename>?
Reply With Quote
  #6  
Old 07-09-2010, 12:41 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Locating Parent Files in Firebug?

<h3></h3> is coded
lbl_categories is in admin -> languages. You need to select your language and do a search in lbl or labels
__________________
- Shane Munroe
Reply With Quote

The following user thanks Shamun for this useful post:
SID357 (07-11-2010)
  #7  
Old 07-09-2010, 01:32 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Locating Parent Files in Firebug?

I would have thought that the <h3></h3> would have been in the menu_dialog.tpl, this template is used for all of the boxes, with different language variables for the title. It depends what youwant to change, the structure or the text.

If it'sthe structure look in menu_dialog.tpl, if it's the word look in your languages,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote

The following user thanks amy2203 for this useful post:
SID357 (07-11-2010)
  #8  
Old 07-09-2010, 02:43 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Locating Parent Files in Firebug?

Quote:
Originally Posted by SID357
fabulous.

admin/languages from where dude? If it's in the x-cart admin language then all it is, is select languages *german* *english* bla bla bla, so on and so forth.

If it's FTP admin/languages.php then it contains nothing regarding to "categories" or anything else in the #left-bar, #right-bar or anywhere else in the file.

It has to be somewhere right?

<h3>Categories<h3> I mean, this line has to be in, some file, somewhere, right?

<filename>?

The line is in menu_dialog.tpl file but it doesn't say
<h3>Categories</h3>
it says
<h3>{$title}</h3>
$title is passed from the file calling menu_dialog.tpl (in this case categories.tpl). That way menu_dialog.tpl can be used with may files passing different $title. Like amy2203 said if you need to change the h3 tag edit menu_dialog.tpl, ifyou want to change Categories to something else edit the language variable. Use admin/languages in admin, choose your language, page will refresh with search field so you can search and then edit
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
SID357 (07-11-2010)
  #9  
Old 07-09-2010, 10:52 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Locating Parent Files in Firebug?

Quote:
Is there an app or mod or any way in Firebug to locate the parent file? The coding isn't so much a problem as just finding out where the #$%! it is

Yes - the tool is Webmastermode - it makes clear what is controlled by language variables and also shows what templates were used to build the various sections of html code. It also tells you what smarty variables are available to you on a particular page, and what those smarty variables are set to. It will be just as important to you as Firebug when making changes to your X-cart site.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote

The following user thanks gb2world for this useful post:
SID357 (07-11-2010)
  #10  
Old 07-11-2010, 07:12 PM
 
SID357 SID357 is offline
 

eXpert
  
Join Date: May 2010
Posts: 205
 

Default Re: Locating Parent Files in Firebug?

Ahhh... Gotcha!

Combining those posts painted a much better picture. Trying not to loose my mind before I get over the learning curve on this thing.

Thanks fellas, appreciate it.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:31 PM.

   

 
X-Cart forums © 2001-2020