and so on... (- is a placeholder for blank spaces)
I have no problem with the main categories. But for some reason the subcategories always looks like Subcategory 1, Subcategory 2, Subcategory 3 on one line. How can I change this?
That's too simple scriptwiki. But thank you anyway!
I use tables for the menu tree and I know HTML very well. Of course I'm able to replace a comma with a <br>. But regardless what code I write for the subcategories, it seems it will be disregarded. And for some reason the source code of the site looks completely different from what I put into the template file.
Regenerate categories is an option (the 2nd I believe) under maintinence->regenerate counters. In 3.3.17 you are automatically stopped and given a link to it when you change that html.
I previously made the menu tree in a new custom template and for some reason the regeneration didn't work. Now I made the same changes to the default main index template, and the regeneration worked!
Well, after I did another 'regenerate counters' the menu tree looks bad again. I don't understand this category menu thing. Why is it one time correct and after a regeneration it's uncorrect again and if I just copy and paste the code out of the template and in again and regenerate counters again then it's okay again until I do another regeneration. It's driving me nuts!
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Question about custom layout
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
The template thing is driving me nuts. I'd like to have a menu tree on the left side which looks like:
-Category 1
----Subcategory 1.1
----Subcategory 1.2
-Category 2
----Subcategory 2.1
-Cagegory 3
----Subcategory 3.1
----Subcategory 3.2
and so on... (- is a placeholder for blank spaces)
I have no problem with the main categories. But for some reason the subcategories always looks like Subcategory 1, Subcategory 2, Subcategory 3 on one line. How can I change this?
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
I think you need do do this
change this
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>,
<!-- END SUBSUB -->
to this
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a><br>
<!-- END SUBSUB -->
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
That's too simple scriptwiki. But thank you anyway!
I use tables for the menu tree and I know HTML very well. Of course I'm able to replace a comma with a <br>. But regardless what code I write for the subcategories, it seems it will be disregarded. And for some reason the source code of the site looks completely different from what I put into the template file.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
could you not place a site map there? Must admit I haven't used the site map facility yet though
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You need to regenerate categories in order for changes to subcats on main page to apply.
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
Where do I have to do that?
If it's in the regenerate counters section, I already did it with no success.
Here's what I have in the template:
and here's what I get in the source code:
So it looks quite different.
Member
Usergroup: Customer
Joined: Oct 14, 2005
Location: Singapore
Total Topics: 11
Total Comments: 31
maybe can try regenerate everything? under regenerate counter...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Regenerate categories is an option (the 2nd I believe) under maintinence->regenerate counters. In 3.3.17 you are automatically stopped and given a link to it when you change that html.
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
Okeydokey, now it works.
I previously made the menu tree in a new custom template and for some reason the regeneration didn't work. Now I made the same changes to the default main index template, and the regeneration worked!
Member
Usergroup: Customer
Joined: May 19, 2005
Total Topics: 18
Total Comments: 42
Well, after I did another 'regenerate counters' the menu tree looks bad again. I don't understand this category menu thing. Why is it one time correct and after a regeneration it's uncorrect again and if I just copy and paste the code out of the template and in again and regenerate counters again then it's okay again until I do another regeneration. It's driving me nuts!