Webmastersite.net
Register Log In

IF condition for subcats

Comments on IF condition for subcats

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted May 06, 2009 - 11:08 PM:

Is there a variable to have an if condition for subcategories?

When there are no subcats on the displaylinks.tpl it still puts in an empty table so there is a big gap in the display under the catname. So I just want to put... <IF {SUBCATS}> table </IF>
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted May 07, 2009 - 9:03 AM:

Hi babrees,

I don't have an answer to your question, but what browser are you seeing this gap in? I don't see it. Gap is about as big with subcats as without (although I didn't measure it!). Tried it in Avant & Firefox both with same results.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 08, 2009 - 5:43 PM:

Use <IF {CATNUMSUB}>
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted May 09, 2009 - 1:32 AM:

Thanks.

Hai, I use FireFox 3 and there is quite a gap.

I have implemented the <IF {CATNUMSUB}> and the gap has closed smiling face
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 09, 2009 - 10:28 PM:

In my default templates, viewing with Firefox 3, it looks exactly identical to me (no gap) with or without that conditional. I guess maybe you have something in your stylesheet specifying padding/margin for tables, that'd explain it.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.