Page 1 of 1

Permalinks - %title% is what exactly?

Posted: Mon Nov 29, 2010 4:05 pm
by sboy
Hello,

I've decided using serendipity since it fits my needs perfectly. One thing I am doing is using my website (not the serendipity blog site) to show serendipity blog entries, by accessing the DB and grabbing info using my own php.

In my website, I want to have links to my blog pages, and the permalink for linking to blog page can use %id% and %title%, the thing is I'm wondering is, how different is title and %title%, how does %title% change the actual title:

I know the %title% changes spaces [ ] to dashes [-], and probably deletes certain punctuations like question marks [?].

Where do I find the code that tells me exactly what %title% is?

Re: Permalinks - %title% is what exactly?

Posted: Tue Nov 30, 2010 12:59 pm
by garvinhicking
Hi!

In include/functions_permalinks.inc.php there is the PHP code for serendpity_makeFilename() that does the transformations from %title%.

You might want to simply link to to /archives/XYZ-guid.html if you don't want to put the title in the url. As long as you have %id% in the URL, it does not matter what %title% actually contains, the lookup is done via ID.

HTH,
Garvin

Re: Permalinks - %title% is what exactly?

Posted: Tue Nov 30, 2010 7:05 pm
by sboy
Thank you for the info! I got it working now~