Webmastersite.net
Register Log In

main page layout, cats' and subcats
How to edit the main page catagories

Comments on main page layout, cats' and subcats

af_mike
Beginner

Usergroup: Customer
Joined: May 25, 2006

Total Topics: 4
Total Comments: 7
af_mike
Posted May 26, 2006 - 6:20 PM:

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.
af_mike
Beginner

Usergroup: Customer
Joined: May 25, 2006

Total Topics: 4
Total Comments: 7
af_mike
Posted May 26, 2006 - 6:23 PM:

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)
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 27, 2006 - 8:27 PM:

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?
af_mike
Beginner

Usergroup: Customer
Joined: May 25, 2006

Total Topics: 4
Total Comments: 7
af_mike
Posted May 27, 2006 - 8:43 PM:

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
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 30, 2006 - 11:27 PM:

That code is meaningless because the subcategories area is never closed. Please compare your template with what the default one has in tha tarea.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.