[Done] Landing Page toggle in admin

MediaWizards Snitz™ Forums
https://www.reddick.co.uk/mvc/Topic/Posts/7472?pagenum=1
Oct 14, 2025 00:11

Topic


doughnut
[Done] Landing Page toggle in admin
Oct 05, 2025 10:37


Landing Page toggle on off in admin; I think maybe some will or some won't like the landing page and would rather go straight to All Forums or would maybe switch it on when there's a lot to say?

I don't know how hard this would be.

 

Replies ...


HuwR
10/5/2025 9:57:33 AM..ToLocalTime().ToForumDisplay()


Possibly not that easy as it is tied into the structure of the breadcrumbs but will take a look.

doughnut
10/5/2025 10:11:02 AM..ToLocalTime().ToForumDisplay()


πŸ‘πŸ»

HuwR
10/5/2025 11:30:25 AM..ToLocalTime().ToForumDisplay()


Found a fairly simple way to achieve this πŸ˜€

HuwR
10/5/2025 1:14:36 PM..ToLocalTime().ToForumDisplay()


Code added for this

doughnut
10/5/2025 1:48:18 PM..ToLocalTime().ToForumDisplay()


πŸ‘

HuwR
10/5/2025 2:35:46 PM..ToLocalTime().ToForumDisplay()


It was fairly simple to implement, however it comes with a couple of caveats.

  1. t can not be set on the fly, it requres shutting down and restarting the application if a change is required
  2. Once set, changing it may cause weird behaviour from members who still get redirected (browsers cache the redirect url)
doughnut
10/5/2025 2:48:50 PM..ToLocalTime().ToForumDisplay()


Yea I wouldn’t want it to cause problems, it’s impressive that you found a way to do it but if it’s gonna cause issues maybe let it be…

HuwR
10/5/2025 3:44:53 PM..ToLocalTime().ToForumDisplay()


It will only cause probems if you change it to something else, not sure how long browsers cache it for, but clearing the browsers cache will fix it.

doughnut
10/5/2025 4:15:29 PM..ToLocalTime().ToForumDisplay()


Worth a trial then?

HuwR
10/5/2025 4:27:45 PM..ToLocalTime().ToForumDisplay()


Worth a trial then?

Originally posted by doughnut

πŸ‘

To set the landing page, you can use the new "FileManager" option on the Admin menu, when the file manager loads you should see a file called appsettings.json, select this file and click the edit icon on the filemanager toolbar.
When the file opens, look in the SnitzForums section and you will see a setting for "LandingPage" change it's value from "" to "AllForums" and save the file.

Saving this file will trigger an app pool recycle so there may be a small delay when you try to open a new page while it reloads the application.

If you now try to go to the "home" page it should redirect you to AllForums and hide the "Home" links in the breadcrumb.

Be careful when editing this file, if you make a mistake it may prevent the application from reloading.

doughnut
10/5/2025 5:16:07 PM..ToLocalTime().ToForumDisplay()


It doesn't seem to save the changes as far as I can tell. After saving there was no change so went back in to the file and it was still in it's original state " ", I tried about three times but no change.

HuwR
10/5/2025 5:34:00 PM..ToLocalTime().ToForumDisplay()


It doesn't seem to save the changes as far as I can tell. After saving there was no change so went back in to the file and it was still in it's original state " ", I tried about three times but no change.

Originally posted by doughnut

😊 I just fixed that πŸ˜€

doughnut
10/5/2025 5:49:18 PM..ToLocalTime().ToForumDisplay()


It didn't like that...

doughnut
10/5/2025 5:51:11 PM..ToLocalTime().ToForumDisplay()


I see what it did, it changed the path from carp-uk.net/playdough/ to carp-uk.net/AllForums

HuwR
10/5/2025 6:35:05 PM..ToLocalTime().ToForumDisplay()


I see what it did, it changed the path from carp-uk.net/playdough/ to carp-uk.net/AllForums

Originally posted by doughnut

???? Uhm, it shouldn't do that the Landing page should still respect the /playdough/ part. I tested it here and it worked fine ☹ will take another look

HuwR
10/5/2025 6:51:16 PM..ToLocalTime().ToForumDisplay()


FIxed now, was a problem with the redirect

doughnut
10/5/2025 7:03:28 PM..ToLocalTime().ToForumDisplay()


Just gave it quick go, a good solution imo, pretty simple to do πŸ‘πŸ»

© 2016-2025 Snitzβ„’ Forums MVC