Page 1 of 1

Generate Links to categories

Posted: Sat Jan 19, 2008 1:11 am
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

Re: Generate Links to categories

Posted: Sat Jan 19, 2008 1:20 pm
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

manually display multiple categories?

Posted: Mon Jul 01, 2013 11:30 am
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!

Re: manually display multiple categories?

Posted: Mon Jul 01, 2013 1:34 pm
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