Jump to content

Macros Location


Guest Denver Dave

Recommended Posts

  • 3 months later...

Guest slsmayville

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.

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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:

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.   Paste as plain text instead

  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.

×
×
  • Create New...