Jump to content
Sign in to follow this  
NiteFox

box.navigation.php - $categories Variable

Recommended Posts

Afternoon all, 

I'm currently playing around  with creating a Bootstrap template and was wondering if anyone knows what the $categories variable produces in box.navigation.php and how to trigger it so i can see what gets outputted from a design point of view. Currently $navigation_tree is outputted which includes categories.

 

{if $CATEGORIES}
	{$CATEGORIES}
{else}
	{$NAVIGATION_TREE}
{/if}

 

Thanks,

 

Share this post


Link to post
Share on other sites

CubeCart will create and cache a skin-based rendering of the category tree, then make that "cameo" available to box.navigation.php in $CATEGORIES. The "pro" of this is to expend just once what could be a time-intensive task in building the tree. The "con" is that (at least for some versions of CubeCart) the URLs have the host address of the store when the tree was built. (Thus, should the web address change, the links do not work anymore.)

By adding {debug} to the end of the main.php template, you should see the $CATEGORIES variable in the left pane of the Smarty popup.

  • Thanks 1

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...