Developer forum

Forum » Development » Area permissions Login template question

Area permissions Login template question

Dmitrij Jazel
Reply

Hi Everyone,

I am trying to restrict user access in Multisites by UserGroups in Area permissions section.

I have a basic setting here: http://screencast.com/t/hehkrokTWZDT

 

Eventually when I am checking the front-end the login box pops out... that's ok. But how do I define "a placeholder" for it?

I mean, it just pops out, there must be some kind a way define/control a specific place in the DOM where it will popup?

 

Regards,

Dmitrij

 


Replies

 
Dmitrij Jazel
Reply

Please correct me if I am wrong here, but I find it really strange why dw would allow to login someone who should have no right to access the site.

If you try using this basic login template: http://developer.dynamicweb.com/forum/development/problem-with-simple-login-form.aspx

Sure there should be some kind of way of using login quick an easy, if no multisites are in use, but if you want to upgrade, and start using multisites, than that form is suddenly starts doing something that you do not expect.

Well, fair enough... if I do need to use the template that I define in Area permissions, ok, but how do I placehold it than? It just attempts to jump in the first "dwcontent" it can find. looks like it.

 
Morten Bengtson
Reply

Hi Dmitrij,

Regarding the placeholder for the login box maybe you will find this other thread helpful...

http://developer.dynamicweb.com/forum/templates/position-login-template.aspx

 
Dmitrij Jazel
Reply

Hej Morten :)

Yes, that is really good post, Thanks allot for that! :)

Well, one thing fine, regarding this "DwLoginBox" tag, I will try trying it out.

But what exactly this settings="default:true" does (the setting that Mikkel talks about)?

 

/Dmitrij

 

 
Morten Bengtson
Reply

You can have multiple placeholders (class="dwcontent") in a layout. The attribute settings="default:true" makes a placeholder the default one, which means that paragraphs are inserted in that placeholder by default - and the login box will appear in this placeholder as well.

 
Morten Bengtson
Reply

From the documentation...

4.2 Default placeholder
When a layout is applied, the existing content (paragraphs) on the pages will be linked to
the default content placeholder. The default placeholder is the first one in the markup.
This can be changed through the settings attribute on the HTML element defining the
content placeholder by adding settings=”default:true”. 

 

You must be logged in to post in the forum