Jump to content

[Resolved] Adding a link to Blueprint main menu


vidmarc
 Share

Recommended Posts

Look at the templates box.navigation.php and element.navigation_tree.php.

Navigation has the overall series of links and this is the best place to add a hard-coded link.

Navigation_tree is used as many times as necessary to build the drop-downs or fly-outs of sub-categories.

Link to comment
Share on other sites

box.navigation.php

<div class="box box-navgation box-categories">
    <div class="wrapper">
        <h3>{$LANG.navigation.title}</h3>
        <div class="content">
            <nav>
                <ul class="clearfix">
                    <li><a href="{$STORE_URL}/index.php" title="{$LANG.navigation.homepage}">{$LANG.navigation.homepage}</a></li>

                    {$NAVIGATION_TREE}
        
                    {if $CTRL_CERTIFICATES && !$CATALOGUE_MODE}
                        <li><a href="{$URL.certificates}" title="{$LANG.navigation.giftcerts}">{$LANG.navigation.giftcerts}</a></li>
                    {/if}
                    
                    {if $CTRL_SALE}
                        <li><a href="{$URL.saleitems}" title="{$LANG.navigation.saleitems}">{$LANG.navigation.saleitems}</a></li>
                    {/if}
                </ul>
            </nav>
        </div><!-- /.content -->
    </div><!-- /.wrapper -->
</div><!-- /.box -->

 

element.navigation_tree.php

 

<li class="{if isset($BRANCH.children)}node{/if}">
	<a href="{$BRANCH.url}" title="{$BRANCH.name}">{$BRANCH.name}</a>
	{if isset($BRANCH.children)}
		<ul>
			<li class="title mega-menu-remove"><a href="{$BRANCH.url}" title="{$BRANCH.name}">{$BRANCH.name}</a></li>
			{$BRANCH.children}
		</ul>
	{/if}
</li>

 

I can't see anything obvious in either of those.

Link to comment
Share on other sites

In box.navigation.php, the Main Menu code below is a simplified rendition:

<ul class="clearfix">
  <li><a href="Link_to_HomePage">HomePage</a></li>
  {Links to Categories}
  <li><a href="Link_to_GiftCerts">Gift Certs</a></li>
  <li><a href="Link_to_SaleItems">Sale Items</a></li>
</ul>

Make more of:

  <li><a href="Link_to_Wherever">Wherever</a></li>

for whatever link(s) you need.

Because you are editing a template, you may need to clear the skin cache (admin, Maintenance, Rebuild tab).

Link to comment
Share on other sites

  • 3 weeks later...

Look at the templates box.navigation.php and element.navigation_tree.php.

Navigation has the overall series of links and this is the best place to add a hard-coded link.

Navigation_tree is used as many times as necessary to build the drop-downs or fly-outs of sub-categories.

I can't find 2 that file, help me more detail.... thanks

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.

 Share

×
×
  • Create New...