"Show threads from all forums that are:" - bug, needs to be fixed
Hello, the pwd protected forums - the 1st page of the project, before users login displays this:
Show threads from all forums that are:
See image attached. How do I get rid of it? thanks
I believe we have answered your question in Ticket 636613. I will paste the answer here for your reference:
Thank you for contacting us.
In order to hide the thread links you will need to map a custom template for the ForumListView and use its code behind to hide the required items.
First create an .ascx file in your project and then copy the forum list template's markup in it. (you can skip the first line from the template - e.g. <%@ Control Language="C#">). Here is the template markup for your convenience:
Then place the following code in the code behind file of the template:
This code checks if the current user has been authenticated and if not hides the threads.
Build the solution and open your project in the browser. Click on the Edit button of the forum widget and then click on Advanced button. Go to ControlDefinitions->Views->ForumsFrontendList and in the TemplatePath field write the relative path to the template you have created.
Save the changes and publish the page, then visit the page as an anonymous user - the links should not be rendered. I have recorded a short video for your convenience.
I hope you find this helpful and please let me know if you have any further questions.
the Telerik team