Edit admin links

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Pcardilla
Posts: 2
Joined: Mon Dec 15, 2008 12:43 am

Edit admin links

Post by Pcardilla »

Hey guys,
I need to add some links to my admin page, database link, counter tracking link etc.. I used to just edit the serendipty_admin.php file but after upgrade to v1.4beta I can not. Any help would be great.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Edit admin links

Post by garvinhicking »

Hi!

The best way is to create an event plugin that hooks into the various hooks (backend_sidebar_entries, backend_sidebar_images, ...) to emit your links.

If you want to hardcode the links directly, you now need to edit the templates/default/admin/index.tpl (or templates/bulletproof/admin/index.tpl, when you use bulletproof) file.

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/
Pcardilla
Posts: 2
Joined: Mon Dec 15, 2008 12:43 am

Post by Pcardilla »

Thanks so much, I'll work on that plugin.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Edit admin links

Post by Don Chambers »

garvinhicking wrote:If you want to hardcode the links directly, you now need to edit the templates/default/admin/index.tpl (or templates/bulletproof/admin/index.tpl, when you use bulletproof) file.
FYI - Bulletproof does not use its own /admin/index.tpl.... it only has a stylesheet and graphics. If you are using bp, and you do want a custom /admin/index.tpl, copy the index.tpl file from /templates/default/admin to /templates/bulletproof/admin/
=Don=
Post Reply