Guest Denver Dave Posted September 2, 2005 Share Posted September 2, 2005 OK, I guess I'll break down and ask. Where are the template macros defined? {xxxx} Quote Link to comment Share on other sites More sharing options...
Guest slsmayville Posted December 30, 2005 Share Posted December 30, 2005 OK, I guess I'll break down and ask. Where are the template macros defined? {xxxx} Well crap, that was exactly the reason why I was here at the forums, and I got all excited and anxious when I saw this post... But alas, nobody has responded. I'll be watching this post to see if anything comes up. Quote Link to comment Share on other sites More sharing options...
Guest ant0 Posted December 30, 2005 Share Posted December 30, 2005 OK, I guess I'll break down and ask. Where are the template macros defined? {xxxx} Well crap, that was exactly the reason why I was here at the forums, and I got all excited and anxious when I saw this post... But alas, nobody has responded. I'll be watching this post to see if anything comes up. Look in your skins/styleTemplates folder :errm: Quote Link to comment Share on other sites More sharing options...
Guest Posted December 30, 2005 Share Posted December 30, 2005 The "macros" (not my choice of a name) are handled in the various PHP files through the XTemplate class. I'm not sure if that's the answer you're looking for, but it's correct. :errm: Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 30, 2005 Share Posted December 30, 2005 example in layman's terms (because I don't know much about php yet): {CATEGORIES} which appears in global/index.tpl template would be assigned in the store's root index.php file, here: include("includes/boxes/categories.inc.php"); $body->assign("CATEGORIES",$box_content); Then, the variables (macros) that are used inside the boxes/categories.tpl template, {LANG_CATEGORY_TITLE}, {DATA.cat_id}, {DATA.cat_name}, {LANG_SALE_ITEMS}, are all assigned to that template by includes/boxes/categories.inc.php, as here: $box_content->assign("LANG_CATEGORY_TITLE",$lang['front']['boxes']['shop_by_cat']); $box_content->assign("LANG_HOME",$lang['front']['boxes']['homepage']); etc., etc., etc. :errm: Quote Link to comment Share on other sites More sharing options...
convict Posted December 30, 2005 Share Posted December 30, 2005 slsmayville couple of weeks ago i have posted this explanation, may be it helps. Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 30, 2005 Share Posted December 30, 2005 He actually asked a specific question in two other posts at the same time he wrote that above . . . http://www.cubecart.com/site/forums/index....t=0entry72806 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.