12 Replies Latest reply on Mar 19, 2015 2:37 AM by GregHole_TDSi

    Borders and Shading with Conditional Build Tags?

    RAOmilctr Level 1

      Can you apply a conditional build tag to a background image (Shading)?

       

      I have a banner at the top of my page using Borders and Shading, and I would like to exclude it when outputting to Microsoft HTML Help (normal output is FlashHelp).

       

      Appreciate any thoughts.

       

      Rich

        • 1. Re: Borders and Shading with Conditional Build Tags?
          Willam van Weelden Adobe Community Professional & MVP

          Hi,

           

           

           

          What exactly is your situation? Do you want to hide the banner or do you want to hide the background image (in CSS) of the banner or something different altogether? Also, how did you add the banner to your topic? Do you use master pages or something else?

           

           

           

          Greet,

           

           

           

          Willam

          • 2. Re: Borders and Shading with Conditional Build Tags?
            RAOmilctr Level 1

            I have — at the moment — two output types, FlashHelp and MS HTML Help. FlashHelp is the default output.

             

            I have the banner on the master page, set as a Pattern Image in the Borders and Shading, no Repeat and with Scroll checked.

             

            What I want to do is to be able to exclude or hide the banner in the Borders and Shading when outputting in MS HTML Help.

            • 3. Re: Borders and Shading with Conditional Build Tags?
              Willam van Weelden Adobe Community Professional & MVP

              Hi,

               

               

               

              Assuming you have RH8 or higher, the easiest way would be to play with the master pages.

               

              1.       Create a second master page without the banner.

               

              2.       In your HTML Help SSL settings, check Apply to all topics, select Master Pages and select the master page without header.

               

               

               

              Your HTML Help will now generate with a different master page and without the header.

               

               

               

              Greet,

               

               

               

              Willam

              • 4. Re: Borders and Shading with Conditional Build Tags?
                GregHole_TDSi

                Hi Willam,

                 

                I am using RH11 and have the same predicament, however your suggestion has not worked for me. Am I to assume that I need two master pages? I have over 200 hundred topics in my help file and you rather not have to add a background image to each one.

                 

                Regards

                 

                Greg

                • 5. Re: Borders and Shading with Conditional Build Tags?
                  Captiv8r Adobe Community Professional & MVP

                  Wow, Greg you managed to resurrect a dead post from nearly three years ago!

                   

                  Can you explain in better detail what you are trying to do?

                   

                  Cheers... Rick

                  • 6. Re: Borders and Shading with Conditional Build Tags?
                    GregHole_TDSi Level 1

                    Yeah sorry about that just having a hard time sorting this one out.

                     

                    What I have is two formats Chm and HTML5. If I add a background to my topics via the Topic Boarders and shading tab the HTML5 plays up because I have specified a background in my Screen layout Theme1_Standard. So I had to remove the background image from each topic to make it work correctly leaving the Chm topic window with no background. As I mentioned I have have tried the Master page route and have tried adding the Background image straight into the RHStyleMapping.css to no avail. The Html5 runs find, its just the Chm file thats playing up.

                     

                    Does that make sense?

                     

                    Greg

                    • 7. Re: Borders and Shading with Conditional Build Tags?
                      Captiv8r Adobe Community Professional & MVP

                      Hello again

                       

                      So you want a background image for all your topics? If so, I'm unclear on why you would use a Master Page for this. If that's what I wanted to do, I'd be editing the CSS to accommodate.

                       

                      Cheers... Rick

                      • 8. Re: Borders and Shading with Conditional Build Tags?
                        GregHole_TDSi Level 1

                        Hey,

                        Yes a background image in all topics.

                         

                        I have tried editing the CSS file and it does show my background in the Other - Background +Text (Body) preview window. I might have approached this at the wrong angle but do I simply add following to the RHStyleMapping.css

                         

                        body {

                          background-image: url(watermark.png);

                          background-position: Right Top;

                          background-repeat: No-Repeat;

                          background-attachment: fixed;

                          font-size: 12pt;

                        }

                         

                        Regards

                         

                        Greg

                        • 9. Re: Borders and Shading with Conditional Build Tags?
                          Captiv8r Adobe Community Professional & MVP

                          Hmmm, here is how I normally do it.

                           

                          Open the Project Manager pod, locate the CSS file and double-click it. Then it should open in the RoboHelp CSS editor.

                           

                          From there, click and expand the "Other" category, then click the "Background + Text (BODY)".

                           

                          THEN click the Format button in the lower left corner and choose "Borders and Shading". And that opens another window where you then click the Shading tab. From there you set the parameters.

                           

                          If this is what you already have done, I apologize. But it didn't sound like you were possibly reaching the right area.

                           

                          Cheers... Rick

                          • 10. Re: Borders and Shading with Conditional Build Tags?
                            GregHole_TDSi Level 1

                            I have followed your instructions to the letter, and yes the image is there and specified. I deleted it re-ran the SSL and it still produces the CHM with all the text but no background

                            Is there a way I can create a new CSS and start from scratch?

                             

                            Thanks

                            Greg

                            • 11. Re: Borders and Shading with Conditional Build Tags?
                              Captiv8r Adobe Community Professional & MVP

                              Hmm, I recall a few versions back that there was an issue where we also needed to add the image to baggage, but I didn't think that was an issue any longer.

                               

                              Assuming that's not it, the only thing that comes to mind is that perhaps you have more than one CSS file and the one you are editing is maybe being actually unused and substituted by another during the compilation process.

                               

                              Is there a chance that you have enabled the override in the Single Source Layouts?

                               

                              tmp1.png

                               

                              Cheers... Rick

                              • 12. Re: Borders and Shading with Conditional Build Tags?
                                GregHole_TDSi Level 1

                                Morning Rick,

                                 

                                I have gone back to basics and opened a new test project with 3 topics and some sample text. I have added a background using the edit css method you suggested and disabling the apply to all topic check box as above and yet Robohelp is still generating the ssl with no background in the topic window.

                                 

                                Am I doing something fundamentally wrong here???

                                 

                                Many thanks

                                 

                                Greg

                                Untitleda.png

                                 

                                Untitled1.png