9 Replies Latest reply on Feb 12, 2007 8:59 AM by ewriter

    Multpile user selected style sheets

    NianNorth
      Visiting the UK Disability rights Commission web site ( Disability rights Commission Website) I noticed they have the option available for users to select the CSS they wish to use on the site, using a selction of buttons. Is something similar available within RoboHelp.

      I ask because our help is published with the system it supports and on our intranet. The intranet team are badgering us about the use of RoboHelp and are insistent that word and WCMS can produce better help than RoboHelp . I am working on showing them the error of their ways and additional accessibility functionality such as this would add to my case.
        • 1. Re: Multpile user selected style sheets
          Peter Grainge Adobe Community Professional (Moderator)
          There is no built in method to allow the user to change the style sheet. The only way I can think of is to find some javascript that allows that and then put it into each page. You would publish using one style sheet but manually upload other style sheets to work with the javascript. It would only apply to the topics of course.

          I don't know how the WCMS would work with Word to produce better help, my gut reaction is "that would be a first!"

          • 2. Re: Multpile user selected style sheets
            NianNorth Level 1
            Cheers for that, I'll look into getting some scripting written and have a play about.
            Yeh, they have a bee in their bonnet about RoboHelp for some reason but I think we will, after I have calloused my head against the wall, win out. These are the same people that insist we insert 12 lines of the exact same Meta data into every HTML file in the web help. If only RoboHelp would let me put it in the topics and leave it there when I generate!

            Anyway thanks again for the quick response.
            • 3. Re: Multpile user selected style sheets
              HWHomberg
              quote:

              Originally posted by: NianNorth
              These are the same people that insist we insert 12 lines of the exact same Meta data into every HTML file in the web help. If only RoboHelp would let me put it in the topics and leave it there when I generate!

              You could give ReplaceEm a shot. www.boolean.ca/replace/

              It can go through your .htm files and search for whatever portion you want to replace (or add to) and swap it out with something else. I've used it many times to go through sets of files and add bits and pieces here and there. It's especially helpful on files that I keep changing the user-visible content in, but want my HTML tweaks to remain the same after RoboHelp goes through and does it's thing to the code.
              • 4. Re: Multpile user selected style sheets
                Peter Grainge Adobe Community Professional (Moderator)
                How would that work? The question is about the end user selecting the style sheet they want applied. I guessNianNorth could create say four versions of the help, have an introductory help file that has four topics with the same content but different style sheets and when the user clicks the one they like, it opens the version of the help with that style sheet.
                • 5. Re: Multpile user selected style sheets
                  HWHomberg Level 1
                  quote:

                  Originally posted by: Peter Grainge
                  How would that work? The question is about the end user selecting the style sheet they want applied.

                  Guess I side-stepped the original question. I meant the side-issue of RoboHelp overwriting the 12 lines of meta data NianNorth's intranet folks want in the HTML files.
                  • 6. Re: Multpile user selected style sheets
                    Peter Grainge Adobe Community Professional (Moderator)
                    Wondered why I couldn't follow your comment! Now I understand.

                    • 7. Re: Multpile user selected style sheets
                      ewriter Level 1
                      I found information about how to define and use alternate css stylesheets that might be of interest at:

                      http://alistapart.com/stories/alternate/

                      You may also want to take a look at quirksmode.org for a more depressing view of the same thing :

                      http://www.quirksmode.org/dom/changess.html

                      Andrea
                      • 8. Re: Multpile user selected style sheets
                        NianNorth Level 1
                        So could this be done by creating a button in the skin and having that apply the alt style sheets?
                        • 9. Re: Multpile user selected style sheets
                          ewriter Level 1
                          Yes, I think so, but you would probably need several buttons for different font sizes. You also need a mechanism to make sure that you reference the correct frame in the frameset (parent.frames[1].frames[1]) The UK Disability Rights Commission web site resolves this issue somewhat differently. It calls the server side page with a parameter referencing the selected CSS or background alternative.

                          Andrea