PDA

View Full Version : Admin Templates - Which one changes which page?



kmm2908
02-26-10, 07:07 AM
Hi

Looking to edit the layout in admin area for the 'view all orders' screen - can anyone tell me which template I should be looking at? Specifically I want to add a button to the bottom of that list.

And then for billing and the rest of the sections? Trying to get a handle on the template system, is there a link to anywhere in docs that I've missed? For example there are not enough template files in the folder to cover all the admin views!

Using v4 admin template.

PS How do I change the admin template?

m00
02-26-10, 08:38 AM
I'm affraid the templating from the admin area is hard-coded. It isn't possible to customize this.

kmm2908
02-26-10, 08:41 AM
Thanks for the swift reply.

But that's disappointing!

Can I add buttons through the sidebar, header or footer tpl files?

m00
02-26-10, 08:59 AM
Well, to add a button on the botom of the "orders"-scripting, you can add this to the footer.tpl as workaround:
{if $SCRIPT_NAME eq '/admin/orders.php'}
your button here
{/if}
(Edit the path if needed)

A good solution? No. WHMCS should make the admin area fully customizable like the client area.

kmm2908
02-28-10, 12:15 AM
Hi mOO

Thanks, that coding will help me a lot.

I agree with you completely and I hope they will.

But in the meantime, dealing with what we have and not what we wished we had, your code snippet will be a great help. Thanks again!