Jump to content

  •  

UPGRADE DEADLINE - SEPTEMBER 26, 2014!
FileMaker Inc. has a deadline for users of version 10,11, 12 as Individual box or volume licenses (with expired maintenance).
If you don't renew your maintenance and upgrade to FMP 13 you will no longer be eligible to upgrade, at the discount pricing.

Volume Licensing upgrade pricing for FileMaker Pro 13, FileMaker Pro 13 Advanced and FileMaker Server 13 will be discontinued.
Individual upgrade pricing for FileMaker Pro 13 and FileMaker Pro 13 Advanced will increase after September 26, 2014.
As of 27-September-2014, FileMaker 10 products will no longer be available for purchase or support.

http://help.filemaker.com/app/answers/detail/a_id/13865


Photo

Custom homepage


  • Please log in to reply
9 replies to this topic

#1 KaosMaker  Maker

KaosMaker
  • Members
  • 74 posts
  • FM Application:13 Advance
  • Platform:Windows 7
  • Skill Level:Intermediate
  • Time Online: 4d 16h 19m 49s

Posted 14 January 2014 - 02:07 PM

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?


  • 0

#2 Sydney@Aeon  newbie

Sydney@Aeon
  • Members
  • 15 posts
  • LocationHACKENSACK, NJ
  • FM Application:13 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 4d 13h 19m 16s

Posted 20 January 2014 - 07:48 PM

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.


  • 0

#3 KaosMaker  Maker

KaosMaker
  • Members
  • 74 posts
  • FM Application:13 Advance
  • Platform:Windows 7
  • Skill Level:Intermediate
  • Time Online: 4d 16h 19m 49s

Posted 21 January 2014 - 08:19 AM

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?


  • 0

#4 Sydney@Aeon  newbie

Sydney@Aeon
  • Members
  • 15 posts
  • LocationHACKENSACK, NJ
  • FM Application:13 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 4d 13h 19m 16s

Posted 21 January 2014 - 03:03 PM

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 Server\Web Publishing\publishing-engine\jwpc-tomcat\fmi\VAADIN\themes\default\layouts

            (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

#5 KaosMaker  Maker

KaosMaker
  • Members
  • 74 posts
  • FM Application:13 Advance
  • Platform:Windows 7
  • Skill Level:Intermediate
  • Time Online: 4d 16h 19m 49s

Posted 22 January 2014 - 08:01 AM

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!
  • 0

#6 Sydney@Aeon  newbie

Sydney@Aeon
  • Members
  • 15 posts
  • LocationHACKENSACK, NJ
  • FM Application:13 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 4d 13h 19m 16s

Posted 23 January 2014 - 10:24 PM

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


  • 0

#7 michaelbbateman  newbie

michaelbbateman
  • Newbies
  • Pip
  • 1 posts
  • FM Application:13 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Membership:TechNet

Posted 18 March 2014 - 10:16 PM

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


  • 0

#8 Sydney@Aeon  newbie

Sydney@Aeon
  • Members
  • 15 posts
  • LocationHACKENSACK, NJ
  • FM Application:13 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 4d 13h 19m 16s

Posted 22 March 2014 - 05:15 PM

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.


  • 0

#9 DataExperience  newbie

DataExperience
  • Newbies
  • PipPipPip
  • 3 posts

Posted 23 July 2014 - 11:32 PM

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


  • 0

#10 millennium  newbie

millennium
  • Newbies
  • PipPip
  • 2 posts

Posted 07 August 2014 - 11:16 AM

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


  • 0




FMForum Advertisers