This question about Topic Markup Language and applications: Answered
Set Default page in Foswiki
Hi,
Can some one please let me know how can I set my default page to "hostname/foswiki/bin/login" page when user tries to access "hostname/foswiki" page. Currently it is getting directed to
WebHome Page by default.
--
FahadOzair - 23 Jun 2021
Check out
HomePagePlugin which allows you to customize the default web and topic for domain landing page.
--
LynnwoodBrown - 23 Jun 2021
Many Thanks Lynnwood for your reply.
I am sorry, I am new to it, can you please let me know if I want to redirect to Login page ""hostname/foswiki/bin/login"" then what do I need to type in the below field in
HomePagePlugin:
{HomePagePlugin}{SiteDefaultTopic}:
Is it path "/var/www/foswiki/bin/login" or there is some different syntax for it.
--
FahadOzair - 23 Jun 2021
It's not a path, simply web and topic reference, such as
Main.WebHome
.
--
LynnwoodBrown - 23 Jun 2021
Thanks for the information, I will try and get back to you.
--
FahadOzair - 25 Jun 2021
Can someone please let me know for below login page
hostname/foswiki/bin/login
what will be the Web and Topic name.
I want anyone accessing my foswiki application should be directed to the login page and after being authorized through login screen then only user should be able to access foswiki content.
--
FahadOzair - 17 Jul 2021
Ok, there's two parts to your question. The first relates to setting the default home web & topic for your site. The second part is requiring users to login as soon as they hit your site.
On the first part, it depends on what you consider your home web to use for landing page. The default for new installations is the Main web. Personally I usually create a new web called "Home" to separate my local content from the Main web that holds users & group information. Whatever web you choose (I'll use Main for example), you will simply set
{HomePagePlugin}{SiteDefaultTopic}
in configure to "Main.WebHome".
Now for the second part of your question, there are different ways to do it, but the easiest option is adding the view script to the list of "Authenticated Scripts" (
{AuthScripts}
in configure). This setting has a list of scripts that require authentication. By adding "view" (the basic script Foswiki uses to display pages) to that list, users will be required to log in to the site as soon as they hit it, regardless of what particular web or topic the they are going to.
--
LynnwoodBrown - 17 Jul 2021
Once again Thanks a lot Lynnwood for your Help and Support. I followed the steps provided by you and was able to configure as wanted. This support question can be closed.
--
FahadOzair - 18 Jul 2021
Great! Congrats for working thru it.
--
LynnwoodBrown - 18 Jul 2021