Linking to categories

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
acrid
Posts: 2
Joined: Tue May 02, 2006 10:04 pm

Linking to categories

Post by acrid »

Can anyone suggest a way to link to categories automatically based upon the category name (or better yet, part of the category name)? I need to have many categories and want to link to them without needing to look up the ID for each category, e.g.

Category Name 1 (ctgy1)
Category Name 2 (ctgy2)
Category Name 3 (ctgy3)
Category Name 4 (ctgy4)
...
Category Name 100 (ctgy100)


I'd like to be able to link to each category from another script, just handing it the ctgy# value but this value will not be the same as the ID used in phpmyfaq. I realize I can get close by using an individual keyword
for each entry in a particular category but I'd rather be able to link directly to a category, not the search results.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

we could add something like the internal links function in the editor. Is this something you need?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
acrid
Posts: 2
Joined: Tue May 02, 2006 10:04 pm

Post by acrid »

Something like that. Essentially I'd need to be able to replace this:

http://www.mydomain.com/faq/index.php?action=show&cat=2

with

http://www.mydomain.com/faq/index.php?a ... ame=myCat1

where "myCat1" is a unique identifier I've used in the category name field (i.e. it's not the entire name. Using the entire name could be trippy if the name contained various html confounding characters but it would still get me a lot closer)
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

we could provide the first solution, the second one could be a hack...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply