Webmastersite.net
Register Log In

Titles above link type entries

Title Titles above link type entries
Message Text Hi, I have separated tables for each of my 3 link types, they display beneath each other. I want a title top of each list of links, so from left to right 3 titles. But sometinmes, i don't have a link for every type, so only neccessary titles should be displayed. but i don't get it. in displaylinks.tpl, i have this:
<div style="float: right; width: 33%;">

<IF {LINKTYPE} is "forum">
<div class="linktype">
<h3>Forums</h3>
</div>
</IF>

<table width="100%" cellpadding="5" cellspacing="10" border="1px">
<!-- BEGIN FORUM LINKS -->
This does not work, as the IF {LINKTYPE} won't recognize anything, because it is not inside the <!-- BEGIN... ...<!-- END.. comments. But if i put it inside (well i don't need a condition then), it will display the title as often as there are links in. So if the category has 5 links of type "forum", i get the title "Forums" 5 times below each other raised eyebrow Do u know a workaround? Starship-Trooper another Q: how do i get the subcategory-display on main-page and category pages to reduce to 3 or 4 and then a ",...", so it won't give me a full list? I did not find this topic, but am quite sure i have read about it before.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership Starship-Trooper
Views 558 views. Averaging 0 views per day.
Similar Topics
Submission Date Feb 12, 2007 - 2:12 PM