Jump to content

Log out block?


planetalk

Recommended Posts

Hi. I have created a bunch of pages for my tutorial site and I've made them as html pages without the suite wrapper. I now realize there's no way for my members to log out without returning to the forum pages. How can I add the logout drop down like I'm seeing right now in the top right hand corner of this page? Is there a block? Or can someone tell me how to  code for that?

Thanks,

KL

Link to comment
Share on other sites

  • 2 weeks later...

You could copy the code from the corresponding template into your page, but be aware that the logout link has a CSRF token so you need to use the correct CSRF key for the current viewing user. I.e. you can't just copy the HTML page source when you view the page.

Most likely you'll need to add this to a custom block, then embed the block into the page where you want it to show.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...