View Hiding File Uploads from Non Logged On Users
Question: I allow members to upload files in my wiki, but even if I’m not logged in, the links for File Upload and Uploaded Files still show. How can I change that?
Answer: You can make a small change in your wiki code to check for if logged in.
Example:
{if uploads}
{if logged_in}
·
<a href="{path:wiki_home}{special_namespace}:Uploads"
title="Uploads">File Upload</a><br />
·
<a href="{path:wiki_home}{special_namespace}:Files"
title="Uploaded Files">Uploaded Files</a><br />
{/if}
{/if}
if logged_in was added between the if uploads code and a close if at the bottom.
NOTE: Code formatted to fit in textarea.