Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-06 22:13:22

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Not to render the page footer at the admin side?

Possible?

I’d like outputting my own footer.. Any workarounds in mind?

(I’m creating pop-ups with some “meta” info about articles etc – the footer takes too much space.. I’d like to keep away from javascript as long as possible when generating the html though.)


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#2 2006-11-06 22:54:41

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Not to render the page footer at the admin side?

After outputting the footer, simply add ‘exit’ to your plugin code.
You could miss out on some of the callback events that have be registered to occur after the main part of the admin page has been generated (if you have plugins installed that use such callback_events).

Last edited by ruud (2006-11-06 23:02:23)

Offline

#3 2006-11-07 05:10:56

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: Not to render the page footer at the admin side?

Thanks.

I used die() already but thought that there’s “something wrong” with that – didn’t cought those callbacks in my mind.

(I have now a iframed sidebar with my recent articles, just trying things out here :D )


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#4 2006-11-07 20:52:19

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: Not to render the page footer at the admin side?

Actually, either a call to die() or exit() will do just the same. They’re really the same function underneath it all, so either will do.


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

Board footer

Powered by FluxBB