I've tried a number of things to get the catagories to show up with the subcat's below them on the main page. The code for the main page;
<!-- BEGIN CATSBODY --> <table align="center" cellpadding="5" cellspacing="10"> <!-- BEGIN REGULAR --> <td {CATWIDTH} valign="top" class="category"> <img src="templates/default/images/folder.gif" alt="folder"> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br> <IF {CATHASDESCRIPTION}>{CATDESCRIPTION} <br></IF> <IF {SWITCH_FORUMVIEWS}>{CATVIEWS} views<br></IF> <div class="subcatsmainpage"> <!-- BEGIN SUBSUB --> <a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>, <!-- END SUBSUB --> </div> </td> <!-- END REGULAR --> </table> <!-- END CATSBODY -->
Because {CATNAME} is listed after displaycat&catid={CATID}">{, my catagores show up as subcatagories as well. I tried puttin gin catsubcat (sic) but that didn't work. Maybe I have to also edit another page? Any help appreciated.
Also, the categories are on top of each other. What is the process of making a table for the main page to have for instance 4 columns of categories with four four rows and the top 3 subcats for each cat. (Similar to format in major directories)
I did set "yes" for the 2 switches that had the word category in then (didn't se anything mentioning subcategory) and now 1 of the sub's shows up. I know a little html. Instead of mess with this could I just create a table in dreamweaver and use this code for the main page cat-subcats: <!-- BEGIN REGULAR --> <td width="25%" valign="top" class="category"> <p><a title="xxx" href="xxx" class="categoryname">xxxx</a><br> <!-- BEGIN SUBSUB --> <a title="xxx" href="xxx" class="subcategoryname">xxx</a>,
If I do that, do I have to change any other file? I'm sure I'll have to change the style.css file to make the subs show up in smaller print. Mike
Comments on main page layout, cats' and subcats
Beginner
Usergroup: Customer
Joined: May 25, 2006
Total Topics: 4
Total Comments: 7
I've tried a number of things to get the catagories to show up with the subcat's below them on the main page. The code for the main page;
<!-- BEGIN CATSBODY -->
<table align="center" cellpadding="5" cellspacing="10">
<!-- BEGIN REGULAR -->
<td {CATWIDTH} valign="top" class="category">
<img src="templates/default/images/folder.gif" alt="folder"> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br>
<IF {CATHASDESCRIPTION}>{CATDESCRIPTION} <br></IF>
<IF {SWITCH_FORUMVIEWS}>{CATVIEWS} views<br></IF>
<div class="subcatsmainpage">
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>,
<!-- END SUBSUB -->
</div>
</td>
<!-- END REGULAR -->
</table>
<!-- END CATSBODY -->
Because {CATNAME} is listed after displaycat&catid={CATID}">{, my catagores show up as subcatagories as well. I tried puttin gin catsubcat (sic) but that didn't work. Maybe I have to also edit another page? Any help appreciated.
Beginner
Usergroup: Customer
Joined: May 25, 2006
Total Topics: 4
Total Comments: 7
Also, the categories are on top of each other. What is the process of making a table for the main page to have for instance 4 columns of categories with four four rows and the top 3 subcats for each cat. (Similar to format in major directories)
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Did you switch off subcategories on main page in your switches, perhaps?
Did you set your sitemap levels to 0 or 1 at settings->general? It might not work due to that.
Because {CATNAME} is listed after displaycat&catid={CATID}">{, my catagores show up as subcatagories as well.
No. That code looks like the default, it's correct. Perhaps something around it that you didn't post was changed?
Beginner
Usergroup: Customer
Joined: May 25, 2006
Total Topics: 4
Total Comments: 7
I did set "yes" for the 2 switches that had the word category in then (didn't se anything mentioning subcategory) and now 1 of the sub's shows up. I know a little html. Instead of mess with this could I just create a table in dreamweaver and use this code for the main page cat-subcats:
<!-- BEGIN REGULAR -->
<td width="25%" valign="top" class="category">
<p><a title="xxx" href="xxx" class="categoryname">xxxx</a><br>
<!-- BEGIN SUBSUB -->
<a title="xxx" href="xxx" class="subcategoryname">xxx</a>,
If I do that, do I have to change any other file? I'm sure I'll have to change the style.css file to make the subs show up in smaller print. Mike
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
That code is meaningless because the subcategories area is never closed. Please compare your template with what the default one has in tha tarea.