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>
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.
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.
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.
Comments on IF condition for subcats
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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>
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Use <IF {CATNUMSUB}>
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Thanks.
Hai, I use FireFox 3 and there is quite a gap.
I have implemented the <IF {CATNUMSUB}> and the gap has closed
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.