frequent
frequent

Reputation: 28513

Can I specifiy a "target" for a Coldfusion template which is inserted from application.cfc

Just wondering (Coldfusion Newbie). I'm on this page, showing an example how to setup a user login/logout in Coldfusion.

Simple question:

If the user is not logged in, the application.cfc inserts a login form.

Question:
Is there any way to set a target where this login form ends up? Some target/selector/anything to make it show up where it's supposed to?

Thanks for infos!

Upvotes: 0

Views: 96

Answers (1)

Dan Roberts
Dan Roberts

Reputation: 4694

The way that code is set up it doesn't matter where you point it as the cflogin tag will always catch the request and process it. In pseudocode...

if not logged-in (cflogin)
    if not submitting form
        show login form
    else
        process login form

Upvotes: 1

Related Questions