Making entire news article available for visitors
Posted: Wed Jan 25, 2006 12:02 pm
My users wanted to make the entire news articles available for the visitors. Currently they can only see the small snippet at the bottom in the news section. I thought I could share my solution with the rest.
I created a new file for the news details that did not require the user to be logged in. This file (see attachment) should be saved in the same directory as defaultview.asp. Be sure the file is saved as: newsdetails_visit.asp
Next we need to make the links active from the snippets much like on the default.asp page. To do so open defaultview.asp and search for this comment line:
About 22 Lines (version 5.12.0.0018) below this comment line you will see:
Replace that with:
Finally, test and you should be ready to go!
I hope I put this in the right forum, if not feel free to move it.
I created a new file for the news details that did not require the user to be logged in. This file (see attachment) should be saved in the same directory as defaultview.asp. Be sure the file is saved as: newsdetails_visit.asp
Next we need to make the links active from the snippets much like on the default.asp page. To do so open defaultview.asp and search for this comment line:
Code: Select all
' Get the newsCode: Select all
<b><%=newstitle%></b>Code: Select all
<b><a href="newsdetails_visit.asp?newsid=<%=newsid%>" class="style12px"><%=newstitle%></a></b>Finally, test and you should be ready to go!
I hope I put this in the right forum, if not feel free to move it.