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?
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?