Direct Links in Categories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
mpfeiffer
Regular
Posts: 17
Joined: Thu Mar 16, 2006 9:19 am

Direct Links in Categories

Post 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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
mpfeiffer
Regular
Posts: 17
Joined: Thu Mar 16, 2006 9:19 am

Post 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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Sounds interesting. I'm sure Garvin would like to test it out.
Judebert
---
Website | Wishlist | PayPal
Post Reply