Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How do I display a category using the 'id' from lsql_category?

Quote Reply
How do I display a category using the 'id' from lsql_category?
Hi,

I get this result from a query on the table.

ID = 10234
Name = Andorra La Vella
Full Name = From DMOZ/Europe/Andorra/Localities/Andorra La Vella

Whats the easiest way to display the category? Is there a page.cgi?category_id=ID type shortcut?

Shri
Quote Reply
Re: [shriram] How do I display a category using the 'id' from lsql_category? In reply to
Anyone?

Can I use the category id or do I have to use the Full_Name when specifying a link to the category?
Quote Reply
Re: [shriram] How do I display a category using the 'id' from lsql_category? In reply to
Hi,

No, you must use the Full_Name to display a category through page.cgi. The only time you can use the ID is if you enable foreign_char option under Setup->Build Options.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] How do I display a category using the 'id' from lsql_category? In reply to
Thanks Alex.