Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2013-03-01 10:14:20
- chetanmodak
- New Member
- Registered: 2013-03-01
- Posts: 8
Password protected page
Hi I am new at textpattern and i just want to know how do i create a password protected page in textpattern.
Offline
#2 2013-03-01 10:48:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Password protected page
Hi, welcome to Textpattern! Have a look at the password_protect tag.
Offline
#3 2013-03-01 13:09:22
- chetanmodak
- New Member
- Registered: 2013-03-01
- Posts: 8
Re: Password protected page
Thank you so much for the support but i dont know how to implement it can you please help me with the code. I didnt get understand where i have to put it so please help me thanks once again
Offline
#4 2013-03-01 13:12:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Password protected page
It doesn’t really matter where you put it. I usually place it just after the <body>
tag in the page. The tag looks like this:
<txp:password_protect login="yourusername" pass="yourpassword" />
Offline
#5 2013-03-01 13:30:54
- chetanmodak
- New Member
- Registered: 2013-03-01
- Posts: 8
Re: Password protected page
Thank’s Els its working i’l do modification asper my requirement thank you so much.
Offline
Re: Password protected page
txp:password is the easy & simple way. It works.
If you want a more elegant approach (different levels of content authorization by login, etc), see this article in TXP Magazine:
http://txpmag.com/meaningful-labour/building-a-textpattern-powered-public-login-form
Offline
Pages: 1