Giving each website a title

Post Reply
b.sims
Posts: 99
Joined: Fri Oct 26, 2001 10:40 am

Giving each website a title

Post by b.sims »

I have a list of partner sites which are walked with webinator. When the sites are searched, I would like the name of the site to appear next to the page found. Is there an easy way to do this?

I'm guessing it will be a modification of the categories script in some way, comparing the site url against the page url. Am I on the right track?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Giving each website a title

Post by mark »

Yes, you could place the different sites into categories with the desired names, then on display lookup the category name for display.
See the code in the "context" function where it looks up the Category for a given url.
<sql "select distinct Category from categories where Catno in ($Catno)"></sql>
b.sims
Posts: 99
Joined: Fri Oct 26, 2001 10:40 am

Giving each website a title

Post by b.sims »

Can I add more than five categories, maybe by using a text file? I have about a hundred sites.

Also, I only want two categories as such. Can I prevent the others from displaying in the drop-down menu (obviously I don't want 100).
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Giving each website a title

Post by mark »

If you want to use a couple normal categories AND names for each of your 100 sites, you'll have to come up with some different mechanism for the names. Designing that is beyond the scope of free technical support. You might modify the script to only show a couple hand coded choices in the dropdown. You could write a tiny vortex script to populate the categories list in the options table with your 100 items.

You may have more than 5 categories. The interface will add more blank boxes for when you use up the ones that are there, but it would be rather tedious to add 100 that way.
Post Reply