PDA

View Full Version : Need help please with Minimalistic template


karen
05-19-2006, 04:10 PM
Hi,
I've got the categories showing up just fine in left column on index page and would like to have it show up on all pages but it only shows on index page - blank on others.

Thanks!
~Karen

Loren
05-19-2006, 06:26 PM
Hello Karen

Welcome by the way! :)

Can you put a link so we can see what you mean? Also what do you mean by blank on others and what about all pages? Do you mean Top links etc?

karen
05-19-2006, 07:34 PM
Hi Loren,
thank you for your assistance :)

I thought I'd try using the Neighbor Categories variable but even with this I get only partial results :wallbash:

Please notice that I've moved the variable from index.tpl to header.tpl.

Right now I just have a few categories listed but no links yet, just getting set up to transfer over from a different script I've been using.
Here's what I have so far:
http://www.4momsathome.com/freebies2

As you'll notice when you go to the any of the other pages, the categories don't show up but I have gotten the "Neighbor Categories" to show up in its place with the category name highlighted at the top of the list but only on category pages.
http://www.4momsathome.com/freebies2/baby_freebies/

There's still nothing showing up on the other pages such as:
http://www.4momsathome.com/freebies2/new-links.html
http://www.4momsathome.com/freebies2/popular-links.html

~Karen

karen
05-22-2006, 06:33 AM
Hi,

I now see that the FireAndIce template has the categories on the left the way I want them but I can't figure out how to do it with the Minimalistic template. I can't see where the difference is between what I did and the way it's done in the other template :wallbash:

I started with this one as a starting point to customize because I thought it would require the least modification.

Is there a way to get the categories in the left column or will I have to start from scratch with the FireAndIce template?

WTM
05-22-2006, 08:21 AM
Hi,

I now see that the FireAndIce template has the categories on the left the way I want them but I can't figure out how to do it with the Minimalistic template...

In FireAndIce template in the left column shown only main categories.
If you want to accomplish the same try this:

In your custom template find code:
{if $categories}
<div class="box">
<div class="box-caption">{$lang.categories}</div>
<div class="box-content">{$categories}</div>
</div>
{/if}

and replace it with code:
<div class="box">
<div class="box-caption">Main {$lang.categories}</div>
<div class="box-content">
{foreach from=$top_categories item=top_category}
<p class="top-category">{$top_category.title} ({$config.base}{$config.dir}{$top_category.path }/)</p>
{/foreach}
</div>
</div>

Now you should be able to see main categories on all pages

karen
05-22-2006, 09:57 AM
Now you should be able to see main categories on all pages

That did it!

Bless you and thanks!! :applause:

Greg
05-22-2006, 01:01 PM
At the top of this forum 2nd one down is a sticky showing this also.

Sticky: How to display all categories on left column
http://www.esyndicat.com/forum/viewtopic.php?t=1848