Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:48:09+00:00 2026-06-05T06:48:09+00:00

Is it possible to add a conditional style sheet to an xpage. Done like

  • 0

Is it possible to add a conditional style sheet to an xpage.

Done like this in html:

<!--[if lt IE 8]><link rel="stylesheet" href="../../blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->

Though about adding with computed field set to HTML and code javascript like:

return '<!--[if lt IE 8]><link rel=\"stylesheet\" href=\"../../blueprint/ie.css\" type=\"text/css\" media=\"screen, projection\"><![endif]-->'

but then it would be included in the body of page, not the header with the other style sheets.

Need for a proof of concept putting together using http://blueprintcss.org.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:48:10+00:00Added an answer on June 5, 2026 at 6:48 am

    an Xpage theme would be great for this. There is an example included with the notes install.

    go to C:\ Notes directory \xsp\nsf\themes

    make a copy of webStandard.theme, rename is webStandard.xml and open in an editor of your choice, this will show you a lot of examples of what a theme can do. Apply attributes, add resources, compute these via expressions etc.

    Snippet:

        <resource rendered="#{javascript:context.isDirectionRTL()}">
            <content-type>text/css</content-type>
            <href>/.ibmxspres/global/theme/webstandard/xspRTL.css</href>
        </resource>
    
        <!-- IE Specific -->
        <resource rendered="#{javascript:context.getUserAgent().isIE(0,6)}">
            <content-type>text/css</content-type>
            <href>/.ibmxspres/global/theme/webstandard/xspIE06.css</href>
        </resource>
        <resource rendered="#{javascript:context.getUserAgent().isIE(7,8)}">
            <content-type>text/css</content-type>
            <href>/.ibmxspres/global/theme/webstandard/xspIE78.css</href>
        </resource>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to add Dependent Breakpoints(Not a Conditional Bp) ( Breakpoint1 is enabled
Is it possible to add an app icon , like it shows in Live
Is it possible to use CCK to add a conditional to the image attach
I would like to add a conditional property to an NHibernate entity using FluentNhibernate
Is it possible to do conditional sort in hash? My hash be like: {1=>10,2=>20,3=>30,4=>40,5=>50,6=>60,7=>70,8=>80,9=>90}
I need to add a PHP condition inside some javascript code like this: <script>
I would like to add to my component the conditional state when the component
I have a lambda expression that currently looks like this: item => Reports.Add(item) I
Possible Duplicate: Add a prefix to each item of a PHP array I try
Is it possible to add XML comments for set and get accessors which will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.