Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » login window inside a site page

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1538 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    login window inside a site page Link to this post

    Hi!
    I want create a login window inside a page of my site. When I log I can see all the site with more 2 page. I try to use login widget but when I load it, this module say tha i login yet. So it' is link to the beginning login to cms. Is there a way to modify thos widget, or ohter way to implemen login? I thoght forms but I'm not able to redirect correctly to my pages.
    Hav you got some idea?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: login window inside a site page Link to this post

    I'm a little confused by the post, but you can edit the hidden input field to set the redirect to any page you want. I generally find this the quickest way to deal with the login form.

    <input type="hidden" id="backURL" name="BackURL" value="/some-page/" >

    You can find this in the form html, or add it.

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: login window inside a site page Link to this post

    Sorry for my bad english..
    I try to explain better. Inside home page I want a login form reserved to a particular user that can see other to reserved page of my site (a normal user can't see these two pages). I try to do this through login widget. the problem is that login widget seems likn to login module to enter in my cms so if I try to implement this it saies me that I login yet.
    My question is: I must create 2 new form for my login without the use of login widget?
    Thanks!

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: login window inside a site page Link to this post

    ok, I try a solution, can you hel me to write bettere what I want to implement?
    I create form as explain in tutorial 3. Whwn I clic in login button I implement a function that return 1 if the user is my privileged user, 0 in the otherwise.
    Now in my navigation menu(1) i want to recall this function and if the function return 1 I want a cicle in menu(1) to see homepage page2 page3, if return 0 I want see in my menu only homepage. Can you help me to write this function wuth silvertstripe?is very difficult form me..

    1538 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.