Page 1 of 1

Direct Links in Categories

Posted: Tue Jul 18, 2006 8:13 pm
by mpfeiffer
is there a solution to let a categorie link direct to a file or for example the wrapurl-plugin intead of to entries.

i have websites, where some entries have to link direct to pdf-documents and so on. i´ve solved this with the html-nugget, no problem. Unfortunately i then have two ore more seperate menus, but better for the user in this case is only one menu.

nice to have, not a must.

regards

M.P.

Posted: Wed Jul 19, 2006 11:05 pm
by judebert
There isn't a Serendipity solution for this one. However, you could customize your .htaccess to redirect any particular category link to a file.

Posted: Thu Jul 20, 2006 11:15 am
by garvinhicking
Hi!

Or of course you can insert your links into the plugin_categories.tpl smarty file when you've enabled the templating option of that plugin...

Best regards,
Garvin

Posted: Thu Jul 20, 2006 3:36 pm
by judebert
Ah, an even better idea. Of course, both ways have to be manually updated; there's no entry form in Serendipity to manage those direct links. But I like Garvin's method better, because it involves a lot less learning and it stays within the Serendipity templates.

Posted: Fri Jul 21, 2006 8:10 am
by mpfeiffer
I´ve checked the code yesterday and have found a way to implement this. Unfortunetely i have to modify the core slightly, but a test version is working already.

I will make it easy for the authors to decide if a category links directly to a url or not, without involving it staff (e.g. changing of templates).

If it is interesting, i will send the code to garvin when i´m finished.

regards

M.P.

Posted: Tue Jul 25, 2006 9:23 pm
by judebert
Sounds interesting. I'm sure Garvin would like to test it out.