Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-05-30 23:51:56
- Transmodiar
- Member
- Registered: 2007-02-22
- Posts: 17
Adding new permanent link style
I want to add or modify an existing permanent link style; the ones bundled with TXP don’t meet my needs. And Graeme’s plug-in crashes my work environment.
This code is in publish.php
case 'section_title':
if (empty($u2)) {
$out['s'] = (ckEx('section',$u1)) ? $u1 : '';
$is_404 = empty($out['s']);
}
else {
$rs = lookupByTitleSection($u2,$u1);
$out['id'] = @$rs['ID'];
$out['s'] = @$rs['Section'];
$is_404 = (empty($out['s']) or empty($out['id']));
}
break;
Can someone with some coding knowledge show me how to, or modify themselves, this case so that it shows the section, then the year, then the title? Bonus points if we can tack an HTML or PHP extension on the end of the title. :)
Thanks!
(Edited for better display of code. -Els)
Last edited by els (2007-05-31 16:25:43)
Offline
Pages: 1