Developer forum

Forum » Templates » "Login here"

Reply

Hi,

 

I want to have a global paragraph with a login form, so the user can login at any time.

 

I built a form that posts the info to an extranet webpage, and if everything is allright, redirect them to another page. This process works, but the user is always redirect to the same page. I would like to know if there is a way of the user never having to be redirect; if he logs in page ID 54 while reading a news, I would like to have him stay on that page reading the news after logging in. Can this be done?

 

An advantage if we could do this is to have the error messages (wrong username or password) displayed right on that page or through a javascript alert.

 

 

Regards,

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply
nuno wrote:

Hi,

 

I want to have a global paragraph with a login form, so the user can login at any time.

 

I built a form that posts the info to an extranet webpage, and if everything is allright, redirect them to another page. This process works, but the user is always redirect to the same page. I would like to know if there is a way of the user never having to be redirect; if he logs in page ID 54 while reading a news, I would like to have him stay on that page reading the news after logging in. Can this be done?

 

An advantage if we could do this is to have the error messages (wrong username or password) displayed right on that page or through a javascript alert.

 

 

Regards,

Nuno

Hi Nuno
 

 

Yes it can - the module was build this way.

 

Simply submit to ANY Dynamicweb address - Like Default.aspx or whatever.

 

So action could be Default.aspx?ID=<!--@Global:Page.ID-->

 
Reply

Hi Nicolai,

 

I still do not understand how the login form is called. There are no templates to support it except when a page has an extranet group applied.

 

I tried loading a page through the global page content, but it does not work.

 

Can you give me some more guidelines?

 

Nuno

 
Reply

Hi Nicolai,

 

Figured it out :)

 

I thought there was a problem with the template, when in fact the problem was with the Include tag.

 

Thanks anyway. Regards,

Nuno

 

You must be logged in to post in the forum