serendipity_rewriteURL, serendipity_makePermalink etc.

Discussion corner for Developers of Serendipity.
Post Reply
Dinges
Regular
Posts: 14
Joined: Fri Aug 12, 2005 3:33 pm

serendipity_rewriteURL, serendipity_makePermalink etc.

Post by Dinges »

How to use these to recreate links?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_rewriteURL, serendipity_makePermalink etc.

Post by garvinhicking »

What exactly do you want to do?

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/
Dinges
Regular
Posts: 14
Joined: Fri Aug 12, 2005 3:33 pm

Post by Dinges »

Recreate the category links, recreate the article links
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Use

Code: Select all

serendipity_buildPermalinks();
This function takes no arguments and recreates all entry, author and category permalinks. This function is called everytime you change any Permalink pattern in the configuration, so you can also call it through the interface by changing one path back and forth.

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/
Post Reply