Add Custom Content to Header

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

Re: Add Custom Content to Header

Postby Dave Lee on Wed Oct 18, 2017 11:45 pm

It doesn't look like the stylesheet is being applied, so:
(1) Check that the stylesheet set in the script exists: Content/Resources/Stylesheets/skin.css
(2) Check that your target does not use the setting: Advanced > Exclude content not liked directly or indirectly from the target. That will exclude the stylesheet from the output.
Dave Lee
Master Propellus Maximus
 
Posts: 5167
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Add Custom Content to Header

Postby pdenchfield on Thu Oct 19, 2017 9:08 am

Thanks, Dave. After adding (3) below, I got it to work!
(3) If your target uses the setting Advanced > Do not use "Content" folder in output, then modify the CSS reference in the toolbar javascript by removing "content/".
User avatar
pdenchfield
Propellus Maximus
 
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA

RESOLVED - Re: Add Custom Content to Header

Postby pdenchfield on Thu Dec 21, 2017 4:34 pm

In case anyone is curious - here's the steps I followed. Previously I had the "Exclude content..." option selected. Clearing that option resolved the issue.
1. Add a variable to control the product name used in the output.
2. Update skin used by my target to use metaname reference to toolbar javascript.
3. Update master page used by my target to remove product name in breadcrumbs.
4. Create a skin file that applies tsyles to the metaname reference in the toolbar javascript.
5. Update the target:
* Skin tab: make sure updated skin is selected (the one updated in step 2)
* Variables tab: overwrite product name variable for this particular output
* Advanced tab:
> clear check box for "Exclude content not linked directly or indirectly fromo the target" - if this box is checked, then the skin created in step 4 is omitted from output, which results in the product name by the logo not being styled.
> add the following to the text box for "Add meta tags to content" (defines metaname that is referenced by toolbar javascript in skin):
<meta name="header-title" content="[%=YOURVARIABLEHERE%]" />
> Master Page: select the updated master page from step 3
NOTE: The skin.css reference in the toolbar javascript assumes that "Do not use "Content" folder in output" is checked.
User avatar
pdenchfield
Propellus Maximus
 
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA

Re: Add Custom Content to Header

Postby bwait on Fri Apr 27, 2018 3:16 pm

Hey folks,
I am implementing Dave Lee's well-documented approach to customize a tripane header. For some reason, the Title does not pick up the skin.css for style or positioning. The title is flush left and obscured by the logo.
Any ideas why this is not working? I followed the instructions and used the default javascript provided. The logo is coming from the skin via Styles -> Header -> Logo.
Thanks!
Brad
Last edited by bwait on Fri Apr 27, 2018 4:49 pm, edited 2 times in total.
bwait
Jr. Propeller Head
 
Posts: 9
Joined: Wed Aug 01, 2012 5:21 pm

Re: Add Custom Content to Header

Postby bwait on Fri Apr 27, 2018 4:47 pm

Solved! I missed the second page of this forum thread that solves my problem. As Pamela explained:

clear check box for "Exclude content not linked directly or indirectly from the target" - if this box is checked, then the skin created in step 4 is omitted from output, which results in the product name by the logo not being styled.


I unchecked that box and everything is working as designed. Thanks Pamela and Dave!
-Brad
bwait
Jr. Propeller Head
 
Posts: 9
Joined: Wed Aug 01, 2012 5:21 pm

Previous

Return to Web-based Outputs

Who is online

Users browsing this forum: No registered users and 6 guests