Role-based HTML5 Help success?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
KLAstry
Propeller Head
Posts: 19
Joined: Tue Sep 18, 2012 6:57 am

Role-based HTML5 Help success?

Post by KLAstry »

All,

I'm using Flare 10.2.2. I'm trying to serve my Help files for my customers based on the URL they access and the language they choose. I understand I'm going to have to implement some custom java. Have any of you had success doing this?

My customers access my product from two servers with their own URLs: RoW (Rest of World), at myproduct.com, and China, at myproduct.cn. The RoW customers get features the China customers don't. The China customers get features the RoW customers don't. The RoW customers can set their lang. preference to any of our 22 languages, including Chinese. The China customers can set their lang. preference to only English or Chinese.

I have conditionalized certain features as In_China and Not_In_China. The In_China content gets translated only into Chinese (I just export projects with different targets based on condition: en_RoW and en_China)

From my single source, I want to output the following files:
In English:
EN_US_ROW
EN_US_CN
In Chinese:
ZH_CN_ROW
ZH_CN_CN

I want my Chinese customers to access myproduct.cn and get, based on lang. preference, either EN_US_CN or ZH_CN_CN. I want my RoW customers to access myproduct.com and get, based on lang. preference, either EN_US_ROW or ZH_CN_ROW. I've been told that I can't run custom javascript inside Flare, but maybe my programmers could help me post-output. Before I go to them, I want to check with you-all. TIA
dorcutt
Sr. Propeller Head
Posts: 234
Joined: Thu May 15, 2014 12:16 pm

Re: Role-based HTML5 Help success?

Post by dorcutt »

The only way I know of of launching Javascript sort of natively from Flare is covered in Dave Lee's excellent guide.

Shooting ignorantly off the hip, it seems that using that technique, you could probably adapt the default landing page into something more useful towards what you're trying to accomplish and/or run other scripts on page load.
-Dan, Propellerhead-in-training
Post Reply