PDA

View Full Version : editing searchwidget.php


steven s
12-06-2009, 10:00 PM
I plan on using a search widget that looks for all posts with a specific prefix in specific forums. Then I need to sort by title.

I can replace$criteria->set_sort('dateline', 'desc'); with
$criteria->set_sort('title', 'asc');
but then need to remember to make the edit each time I upgrade.
Or I can possible rename searchwidget to searchwidget2 and find all the references to it.

Is there a cleaner way to do this?

Lynne
12-06-2009, 10:17 PM
Create a new widget by copying that one? (No, I've never done that, but there is a blog on creating widgets, so it obviously can be done.)

steven s
12-06-2009, 10:35 PM
I'm OK with the widget.
I want to avoid editing a core file.