Forums / Templates, Stylesheets, Page Layout / How to show Categories links in footer? Main menu of header?

How to show Categories links in footer? Main menu of header?

Locked

Started by gnotapipe on 24 May 2006, 4:20 PM · Views: 4,205

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 May 2006, 4:20 PM
#1
gnotapipe avatar

gnotapipe

New Zenner

Join Date:
May 2006
Location:
Oregon, USA
Posts:
33
Plugin Contributions:
0

How to show Categories links in footer? Main menu of header?

Hi,
I need to show the Categories link set, that is what is normally the content of the categories tabs menu portion of the header in either

  1. the footer, or...
  2. in the header in the main menu section, that is on the same line following the other links.

I'd also like to put the logo & the bread crumb nav into the left column, with, I guess, each 'crumb' on a new line. This w/ no tag line in the header, so that essentially the only portion of the main menu used would be the main menu div.

Any zen masters w/ suggestions on the best way to do this?

Thx!

24 May 2006, 4:50 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,718
Plugin Contributions:
0

Re: How to show Categories links in footer? Main menu of header?

Find this section of your tpl_header.php:

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->

Move it to your tpl_footer.php

(NOTE: have not actually tried that, but it should work in theory :lookaroun )

WHOOPS! I grabbed the ez-pages instead of the cat-tabs- the right code is there now .

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 May 2006, 5:37 PM
#3
gnotapipe avatar

gnotapipe

New Zenner

Join Date:
May 2006
Location:
Oregon, USA
Posts:
33
Plugin Contributions:
0

Re: How to show Categories links in footer? Main menu of header?

Thanks Kim.
I had just successfully gotten the Cat. link set into the footer & was about to post that I had when yours came through.

As I wasn't quite totally happy w/ what I had, I tried your sugg. but I couldn't get it to work. Tried hacking it around a bit but no luck, even though it looked to me like it should.

What I got to work was this (adapted from tpl_modules_categories_tabs.php):

<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
<?php
	// Begin My customization to include Categories links
	include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
	for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
  	<li><?php echo $links_list[$i];?></li>
   <?php // End My customization
    ?>
<?php } ?>
<?php } ?>
</ul>
</div>
</div>
<!--eof-navigation display -->

What I don't quite like is that this gives the links class="category-top". I think I'd like to have the links in both places, but give the footer links a oval 'buttony' bg image, so I'd like to be able to style them differently. Maybe I can address the footer ones special in my css somehow.

Thanks for the help!

24 May 2006, 5:53 PM
#4
gnotapipe avatar

gnotapipe

New Zenner

Join Date:
May 2006
Location:
Oregon, USA
Posts:
33
Plugin Contributions:
0

Re: How to show Categories links in footer? Main menu of header?

Kim--
Just saw your 'whoops' edit & tried that. Got it to work but it writes the whole div so it creates an additional line. Also it needs Categories-Tabs set to show brings back the Categories-Tabs div as part of the header.
As per above, I got it working but thought you might like to know my results.

Now on to my other issues!
FWIW, my link is http://ashlandheartandhands.com/cart/
... but be forwarned, it's pretty darn pink! (not my call!)