![]() |
Force Log-in to view Content Pages |
Post Reply ![]() |
Author | |
GTiFreak ![]() Newbie ![]() Joined: 30-January-2007 Location: United States Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 01-March-2007 at 1:30pm |
I have a bunch of articles that I want to put up on my site as content pages,
but I want to have people log in or register to view the articles. Anyone have any insight on this? |
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
There are probably several solutions but here is one... If you feel comfortable modifying the header.asp, which by default shows all of your active content pages, change it so it just displays the specific pages you want. Easiest would be to create the links manually. Then create all of your other content pages. Create one content page that has links to all of the other content pages for your login area. Then modify custpref.asp and where it displays the other account links, add a new link to your single content page that links to all of your other restricted content pages. Please note, this does not keep search engines from potentially indexing those pages but it will keep visitors from finding those content pages from your site. Another solution would be to use a specific naming convention for your content page title, i.e. put *** as the first three characters of the name, and then in viewcontent.asp do a check on for the page title to see if it is a restricted page. If so, then check if the customer is logged in and if they aren't display an error message. Otherwise display the page content. |
|
![]() |
|
plezaic ![]() Newbie ![]() Joined: 05-December-2007 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
In case someone else is still looking for solution for this. Modify beginning of viewcontent.asp to look like this:
Create your content pages through Store admin area. Then you just have to decide where you want to put links to those paes. Login will be required. Links to content pages will look like this: http://www.domainname.com/cart/pc/viewContent.asp?idpage=1 You can see them from Preview link under Manage content pages. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |