Page 1 of 1

Front-end-initiated action to just do something, not display

Posted: Wed Apr 15, 2015 6:00 am
by tomphantoo
Is there a way to block all changes to the frontend display, after a site url has been requested? Something akin to SuppressAdminOutput() for backend display?

I want to be able to just "do something" instead of "display something", after receiving a relevant URL request.

Sofar I can't find a way to process an action, which itself displays nothing, without stuffing up the display.

Re: Front-end-initiated action to just do something, not dis

Posted: Wed Apr 15, 2015 7:39 am
by velden
Sure:

use a template with nothing in it but:
{content assign='content' wysiwyg=false}

Create a page connected to that template. Do your thing inside the content block (e.g. call a udt).

It will output an empty page.

EDIT: '?showtemplate=false' in the url will skip whole template but default content block {content} too. But depending on how that default content block is setup AND what your procedure will output it might/might not return an empty page.