Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-09-26 11:29:07
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Quick selecting search parameters at admin list views?
Lo,
I was checking the 4.0.4 test build and liked the new list views a much. I’m not a bad typist but still I like clicking things whenever possible. After tampering a while I hacked a way to select image categories and authors by mouse only..
I replaced line 184 at txp_image.php (before that before “echo n.n.tr(…”)
<code>
$category = ($category) ? ‘<span title=”’.fetch_category_title($category, ‘image’).’”>’.$category.’</span>’ : ‘’;
— to —>
$category_pick_url = ‘<a href=”?event=image’.a.‘step=image_list’.a.‘search_method=category’.a.‘crit=’.$category.’”>’.fetch_category_title($category, ‘image’).’</a> (‘.$category.’)’;
$category = ($category) ? $category_pick_url : ‘’;
$author_pick_url = ‘<a href=”?event=image’.a.‘step=image_list’.a.‘search_method=author’.a.‘crit=’.$author.’” title=”’.get_author_name($author).’”>’.$author.’</a>’;
</code>
and then replaced row 218
<code>
‘<span title=”’.get_author_name($author).’”>’.$author.’</span>’
— to —>
$author_pick_url
</code>
Yes,it is ugly – that’s why i’m not a coder.. But rather nifty I think! (:
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline