KaosMaker

Custom homepage

10 posts in this topic

I'm hoping someone else out there has had some success with this, or at least some thoughts to lend.

 

The WebDirect Guide has a simple and rather straightforward instructional page regarding the use of a custom homepage in WebDirect, instead of the default Database Homepage, for a more seamless solution without the WebDirect branding. I have followed the instructions to the letter, making the desired changes to the fmwebd_home.html page in the HTTPServer/conf folder, and even restarting the web publishing engine. However, no matter what changes I make, no change is seen on WebDirect's homepage. Even if I completely remove the fmwebd_home.html file from the folder, as well as the copy of the original, the default Database Homepage still continues to show.

 

Is this a bug? Is there some caching issue (not on the client end, since it happens even if I connect from a computer that has never connected before)? Where is the actual page that is showing, and most importantly, how can I change it?

Share this post


Link to post
Share on other sites

There is some documentation from FileMaker on this, but it does not work properly.  I found this on another forum and it worked for me:

 

Using a custom homepage

To replace the default Database Homepage, place an HTML file named fmwebd_home.html in the HTTPServer/conf folder where FileMaker Server is installed (Windows) or in the /Library/FileMaker Server/HTTPServer/htdocs folder (OS X). Web users are returned to this page when they log out of a session or the session times out.

You can use the fmwebd_home.html file that is on the disk image as a basis for your custom homepage. Be sure to make a copy of the original file before modifying it. Or you can create your own homepage, such as one that redirects web users to another page on your website.

If there is no file named fmwebd_home.html in the conf folder (Windows) or the htdocs folder (OS X), FileMaker WebDirect uses the default Database Homepage.

To prevent a custom homepage from loading into the FileMaker WebDirect layout frame when a user logs out via a script or when a session times out, add the following JavaScript to the head section of the fmwebd_home.html file:

if (window != window.top) top.location = "/fmi/webd/#";

You can set top.location to the home URL or any other URL.

Share this post


Link to post
Share on other sites

Unfortunately, that's exactly the instructions from the WebDirect Guide, and I can't get it to work for me. Are you using a Mac server or Windows server, if I may ask?

Share this post


Link to post
Share on other sites

Windows 2008R2

 

If you using a 2 machine setup, make sure your modifying the worker machine.

 

There was one other part I forgot to mention that is NOT is FileMaker's documentation:

 

Got to  (Win) FileMaker ServerWeb Publishingpublishing-enginejwpc-tomcatfmiVAADINthemesdefaultlayouts

            (OSX) /Library/FileMaker Server/Web Publishing/publishing-engine/jwpc-tomcat/fmi/VAADIN/themes/default/layouts(OS X)

 

I changed the imp_home.html file to the following (make a backup just in case):

<body>
<script type="text/javascript">
         top.location.href = "http://<you URL to Redirect Goes Here>";
</script>
</body>
1 person likes this

Share this post


Link to post
Share on other sites

You, sir, are a genius. I had seen that iwp_home.html file before, on my frustrated searches of the entire FileMaker Server directory, but frankly passed it off as some sort of legacy relic from IWP. This is just what we needed, thank you! Now we can actually move forward with the transition! As a side note, at least in Chrome, it does tend to flash the old page at me briefly, including a strange, bright red "Communications Error" message at the top, but only for a moment, before redirecting correctly. I am ok with this, since users will only see it on the way out, and therefore probably won't be scared off. Thank you again!

Share this post


Link to post
Share on other sites

Glad to help. I have seen the Communication error happen (only in Chrome), but it's so brief that it's more of a half second flash.

 

-Sydney

Share this post


Link to post
Share on other sites

Thank you both for this discussion, every bit of it applies to me but I have an additional issue: When I apply the suggested Javascript it somehow defeats the CSS in my WebDirect projects and ALL of the pages are different.  It doesn't seem to matter how delicately I preserve the other elements of that page or how completely I obliterate them, this javascript just shuts down all CSS in any WebDirect pages on that site.  

 

What's up with that?  What core concept am I missing here?  I just want to send some users to a WebDirect Session, and yet send them somewhere else I specify when done.  Any ideas appreciated! :)

 

-Michael

Share this post


Link to post
Share on other sites

michaelbbateman, the javascript is only for the home page and does a redirect. It would not affect the CSS after the redirect. Perhaps something else is going on. What comes to mind is a previous modification that caused the issues or a layout that has a classic theme. Classic theme just doesn't work well with Webdirect and causes strange issues.

1 person likes this

Share this post


Link to post
Share on other sites

I did the above, quoted here:

Replaced this file with the on with this code:

 

Path: C;//Library/FileMaker Server/Web Publishing/publishing-engine/jwpc-tomcat/fmi/VAADIN/themes/default/layouts/iwp_home.html

 
<body>
<script type="text/javascript">
</script> 

</body>

 

 

There are still some issues, once deployed:

If you “cancel” when prompted to logon, the server will re-direct to something like “http://192.168../fmi/webd#, and leave you on a blank page.

When you logout, also, the server will re-direct to something like “http://192.168../fmi/webd#, and leave you on a blank page.

 

This is not acceptable to the client who wants branding.

Can someone explain how to error trap for the re-direct?

 

Thanks,

 

Jonn

Share this post


Link to post
Share on other sites

I think solution may be in specifying the home URL.  We produce the following redirect which always puts a user in the correct place and could be modified (I assume) to point them to the custom homepage:

 

https://<your domain here>/fmi/webd?homeurl=https://<yourdomain here>/#DATABASE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • By Carlos Soares
      Hello
       
      I would like to know how many users can access my web direct in simultaneous.
      I read somewere only 5 users can access the database on remote mode. This can be aplyed to web direct?
       
      Thanks
    • By Jason H
      I'm trying to find out if its possible to create a web based FileMaker 13 solution (WebDirect) where I can remotely upload files to the db and someone else can remotely download those files.
      All the reading that I have been doing with regards to WebDirect doesn't touch on containers at all.
      Is this scenario possible and what would be the basics of making it happen (how to initiate an upload or downlaod, contain setup, etc)
       
      Jason
    • By Martin_S
      Hi
      Ok, so we have just completed the set up of our test FM13 server and the application is being accessed via webdirect.
      I have tested it on Chrome (as our managed image only runs IE8 at present), and I get a login dialog whuich i have to enter my network credentials into. Currently the application is secured by three different Active Directory groups based on the access level of the user, and the users would really like to know if it's possoble for them to not have to sign in?
      The third party provider who set this up believed it was possible, but as WebDirect is new, there doesn't seem to be much info available. I've searched the user guides and they all mention SSO with ODBC, but I am pretty sure this doesn't apply here.
      Can anyone tell me if what we need is possible, and if so how?
      Thanks
      Martin
    • By colin taylor
      Hi would like to have a url load my ebay purchasing history . It needs a username and password so how do i set this up  in the web viewer so the page loads automatically. Is this the best way to do it.
      Thanks Col
    • By HX_Guy
      I'm looking to setup a solution for sales reps via WebDirect to where each sales rep can login but only be able to view records assigned to them.
      How difficult would this be to setup? 
      Right now I have a layout that has a drop down with each sales rep name. Could I make additional layouts and have some sort of identifier for each sales rep and then when they log in with their user, that user is only allowed access to that layout/records?