Generate Links to categories

Discussion corner for Developers of Serendipity.
Post Reply
hawaigaign
Regular
Posts: 37
Joined: Thu Sep 14, 2006 11:43 am

Generate Links to categories

Post by hawaigaign »

Hi

How are the links of the categories designed? and where are this links stored in the mysql database?

on my website, i have links to the categories of my blog. these categories are getting too much, to be linked manualy. so i'd like to write this links automaticaly with php in my menu of my website. but where can i find this links in the database?

thanks for helping me :-)

cu, hawa
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Generate Links to categories

Post by garvinhicking »

Hi!
How are the links of the categories designed?
Through the setup of the "Permalinks" of the serendipity configuration.
and where are this links stored in the mysql database?
If they are using %id% they are stored nowhere. Only if you use custom permalinks without %id% in the URL, the serendipty_permalinks database table is used.

Apart from that, Serendipity category links are created using the functions in include/functions_permalinks.inc.php.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

manually display multiple categories?

Post by Huhu »

I have a similar question. I know I can display many categories at once by choosing them with the Category module. Say, 1, 2, 3, 4

But how is a (manual) link to multiple categories designed? Say, I want to display 2 and 3 through a "hard" link?

Thanks so much!
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: manually display multiple categories?

Post by garvinhicking »

Hi!

You would use something like:

http://yourblog/index.php?serendipity[category]=2;3

(seperate them with ";")

I haven't tried this, but you should also be able to use:

http://yourblog/categories/2;3-multiple-categories.html

(if you use URL rewriting)

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply