• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Headers and footers not showing online

New Here ,
Jul 08, 2007 Jul 08, 2007

Copy link to clipboard

Copied

Hi,

I have yet another problem. I had pretty much given up trying to add a banner header and footer on all topic pages but thought I'd ask here for a solution. I created a template in RH and added a company banner and footer. Then I applied this template to mulitple topics. I can see the header and footer in the RH generated Preview for RH Html help. (Am using X5) When I publish the updated pages and template on to the server, there is no header or footer even though in the source code of the one of the pages I can see the code indicating the template applied to this page. Does file path for the template matter. Also is there a file that may not be getting updated that is part of the template? I can see that the rhtemplate.apj was updated to include the new template. So far the style sheet I applied to the topics works but not the template. If I can't get the template to work can anyone suggest a line of code I can add to my external css file that may work the same way to add a header and footer image to multiple pages simultaneously? I am on a deadline and need a quick solution. Please respond with any advice or suggestion. I appreciate any help. Thanks in advance.

Views

808

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 13, 2007 Jul 13, 2007

Copy link to clipboard

Copied

Hi,

I am still waiting on any help available. If my issue as described seems irresolvable, then can someone suggest the include file script that I can insert on every page using a find and replace for the <head> tag. I also read somewhere a .js file will then need to be created with the image/banner data. However I don't know if this will work within RoboHelp. Can someone confirm if this can or cannot work and how I should proceed. I've put off the design developers and management long enough. I need a solution fast. I don't want to tell them I can't do this. Please advice. You may send me a private message. I can give you my outside e-mail then. I appreciate any feasible suggestion.


thanks,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 13, 2007 Jul 13, 2007

Copy link to clipboard

Copied

Hi HTMLRobo12

Sorry nobody has responded to your question yet. I'll take a stab at it. Firstly, I have a really silly question to ask of you. I see you mention that you have created and applied a template. So it sounds as if the first steps have been completed. You then say you published to the server. Here's where I get confused.

You said you see the header and footer "in the RH generated Preview for RH Html help."

So here's my silly question. You did actually perform the step of "Generating" your output, didn't you? I ask, because you only mentioned Previewing earlier and made no mention of generating. If you come from a web development background and maybe work with FrontPage or Dreamweaver, there is no "generate" process. You just edit the pages and then upload them to the server. But RoboHelp is quite different in this respect. You first generate your system, then publish it to the server.

Hopefully this helps... Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2007 Jul 15, 2007

Copy link to clipboard

Copied

Hi,

Thanks for the response. I did generate and I definitely published to the server. Now that the files are on the server, shouldn't I see my results in production/ Help site.? What can be the reason(s)? Is there a file I could open up in notepad to check if all the template info is there? In the single file source codes, i can see the script for the template applied but have no clue why I can't see it in results.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 16, 2007 Jul 16, 2007

Copy link to clipboard

Copied

Since the graphics you're using have not been inserted into an .htm file, RH might be playing dumb. In which case, you'll need to add the graphics to the rhbag.apj file (either through the GUI or through the .apj file in Notepad).

In addition, the graphics MUST be in the same "relative" location on the server as they were on your local machine.

As far as getting headers/footers to work through your .css file, you'd better become a world-class CSS expert before attempting that!


Good luck,
Leon

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

Hi,
Thanks for the suggestions. I did try what you said about editing the rhbag.apj file in notepad. It didn't work. These are the lines I entered to add the graphics to the rhbag.apj file. I did add these lines inside the end lines of the code. :

<file>
<name>OLH_title_ddr.gif</name>
<usercreated>true</usercreated>
<comments/>
</file>
<file>
<name>BrandNav_OLH.gif</name>
<usercreated>true</usercreated>
<comments/>
</file>

<file>
<name>bar.bmp</name>
<usercreated>true</usercreated>
<comments/>
</file>

These grahics are located inside the main project folder on the server and on my PC. The Template is also outside any subfolder. The other file I looked at in Notepad was the rhtemplate.apj. It also has the correct template listed. It had two listed (an older temp) I removed the line reference to the old temp and left this:

<?xml version="1.0" encoding="windows-1252"?>
<rhpml majorversion="1" minorversion="0">
<files>
<file>
<name>New Template NEW.htt</name>

<comments></comments>
</file>
</files>
</rhpml>


Please advise what I might be doing wrong here.

thanks again.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

Silly me, I just love asking these goofy questions.

Is the content in your template file actually in the header and the footer (indicated by the dotted square div area), or is it content placed at the top and bottom of the body?

RH will display template headers and footers when the template is assigned; however, no body content is displayed unless the template is assigned at topic creation.


Good luck,
Leon

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2007 Jul 17, 2007

Copy link to clipboard

Copied

LATEST
Ok Merge This,

Yes I did enter the header (just inserted header for now) image inside the dotted line in the header part not the body of template.

This is partial code from the template file it self. As a note I am applying this template to exising topic pages so no I did not create the pages with this temp. Here is part of the .htt file code:





<!--(Style Sheet)===================================================-->

<style>
<!--

body {
border-left-style: Groove;
border-left-width: 4px;
border-right-style: Groove;
border-right-width: 4px;
border-top-style: Groove;
border-top-width: 4px;
border-bottom-style: Groove;
border-bottom-width: 4px;
}

-->
</style>


</head>

<!--(Body)==========================================================-->


<body>

<div placeholder
id=header
style="width: 100%; position: relative;">
<p><img src="BrandNav_OLH.gif"
x-maintain-ratio=TRUE
style="border: none;
width: 560px;
height: 50px;
border-style: none;
float: none;
border-style: none;"
width=560
height=50
border=0><img src="bar.bmp"
x-maintain-ratio=TRUE
style="border-left-style: Groove;
border-top-style: Groove;
border-right-style: Groove;
border-bottom-style: Groove;
border-left-width: 2px;
border-right-width: 2px;
border-top-width: 2px;
border-bottom-width: 2px;
border-left-color: #ffffff;
border-right-color: #ffffff;
border-top-color: #ffffff;
border-bottom-color: #ffffff;
height: 31px;
width: 557px;
float: none;"
height=31
width=557
border=2></p>

<p><img src="OLH_title_ddr.gif"
x-maintain-ratio=TRUE
style="border: none;
width: 530px;
height: 30px;
border-style: none;
float: none;
border-style: none;"
width=530
height=30
border=0></p>
</div>
<h1><!--kadov_tag{{<variable name=title
x-format=default
x-value="New Template NEW">}}-->New Template
NEW<!--kadov_tag{{</variable>}}--></h1>

<p>This is placeholder text for your template. To add content to the body,
replace this text. To add a header or footer, click the <b>Header</b>
or <b>Footer</b> button on the toolbar.</p>

<p> </p>

<p>The heading in this template is a special field for topic titles, so
generally you do not need to edit it.</p>

<p> </p>

<p>For information about applying templates to topics, press <b>F1</b>.</p>

</body>

</html>

And the following is on the very top (<Head> section of each topic page which has the Template applied:

<!--(Meta)==========================================================-->

<meta name="template" content="New Template NEW.htt">


Believe me, no question is goofy. It's better to ask then not know at all. I admit I am no RoboHelp expert but am trying to learn from experts on these forum, including you (and Rick). I appreciate all the help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp