Adding resources that include parameters (xpages tip)

You have several options how to include resources (e.g. css files) that include query parameters. What does not seem to work is to add such a style sheet reference via the Resources \ Style sheet option.

However if you add the reference as a linked resource things seem to work e.g.

<xp:linkResource
href=”http://fonts.googleapis.com/css?family=Open+Sans:300,400,700&#8243;
rel=”stylesheet” media=”all” target=”_self” charset=”UTF-8″>
</xp:linkResource>

I am not sure if this is the proper or preferred way to add such resource?

Advertisements

3 thoughts on “Adding resources that include parameters (xpages tip)

  1. Sven Hasselbach 2013-March-28 / 2:03 pm

    Do you mean this? Or do I not understand your problem?!?

    • Sven Hasselbach 2013-March-28 / 2:05 pm

      xp:styleSheet href=”http://fonts.googleapis.com/css?family=Open+Sans:300,400,700″

      • Patrick Kwinten 2013-March-28 / 2:50 pm

        Hello Sven, I am not aware that you can link a stylesheet in the way you suggest…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s