Webmastersite.net
Register Log In

Need to show list of categories
how to use toplis to show list of current cats

Comments on Need to show list of categories

2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted Jul 07, 2007 - 2:41 PM:

I need to show a list of current categories, linked and everything, on the template (sitewide).
I tried creting a toplist, but it isn't working.

-- BEGIN TOPLIST 5 -->
<CONFIG>categories,name,50,ascending,,,,0,0,0,0,0,0</CONFIG>

<!-- END TOPLIST 5 -->

Any suggestions on what I am missing?

thanks,
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 08, 2007 - 9:37 PM:

You have no content specified. What do you want to show? If you want to show the category name and link, you need to type it: <a href="{CATURL}">{CATNAME}</a>.
2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted Jul 09, 2007 - 2:58 AM:

Hi Paul,
I need to show ALL the categories in a list so I can place it on the side as a navigation tool. What you typed prints the current categoy only.

thanks
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 11, 2007 - 3:53 PM:

Go to Admin -> Customizations -> Toplist Generator. At the bottom there's this box saying "Type the content of what you want displayed for each item here:" http://www.webmastersite.net/screenshots/22878.jpg

If you don't type anything there, nothing will ever show. You need to type in there the way you want each item displayed. In this case you want to type <a href="{CATURL}">{CATNAME}</a> there.
2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted Jul 12, 2007 - 3:13 PM:

Thanks Paul!
any way to do main categories only? I searched on scripts.webmastersite.net/w...s/wsnmanual/link.php?id=11 and tried some but I can't find. I thought about doing it via HTML only but I rather have it change language too like they do on the main page. Looking at main.tpl I didn't see a difference between cats and subcats.

any way to do this? Thanks.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 13, 2007 - 12:06 AM:

2222a wrote:
Thanks Paul!
any way to do main categories only? I searched on http://scripts.webmastersite.net/wsnlinks/wsnmanu... and tried some but I can't find. I thought about doing it via HTML only but I rather have it change language too like they do on the main page. Looking at main.tpl I didn't see a difference between cats and subcats. any way to do this? Thanks.



I Use the following to produce a "menu"...

categories,name,50,ascending,parent='0',,,0,0,0,0,0,0

the parent=0 produces just the top level
2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted Jul 13, 2007 - 12:45 AM:

Perfect, thank you!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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