<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Can you set a background image on a knowledge article template in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495644#M488297</link>
    <description>&lt;P&gt;Hi All, Is it possible to set a background image to always appear when creating a knowledge article with a specific knowledge template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. you create a new article and it automatically sets an image in the background.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex319_0-1677848269995.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/244709i0FE3CCEB3B3296CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alex319_0-1677848269995.png" alt="Alex319_0-1677848269995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help would be amazing,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2023 12:58:51 GMT</pubDate>
    <dc:creator>Alex319</dc:creator>
    <dc:date>2023-03-03T12:58:51Z</dc:date>
    <item>
      <title>Can you set a background image on a knowledge article template</title>
      <link>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495644#M488297</link>
      <description>&lt;P&gt;Hi All, Is it possible to set a background image to always appear when creating a knowledge article with a specific knowledge template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. you create a new article and it automatically sets an image in the background.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex319_0-1677848269995.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/244709i0FE3CCEB3B3296CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alex319_0-1677848269995.png" alt="Alex319_0-1677848269995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help would be amazing,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 12:58:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495644#M488297</guid>
      <dc:creator>Alex319</dc:creator>
      <dc:date>2023-03-03T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can you set a background image on a knowledge article template</title>
      <link>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495817#M488319</link>
      <description>&lt;P&gt;I am not aware of a simple way to do that out o the box. Right now I can think of two "workarounds".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Edit the HTML source code of the article, or template.&lt;BR /&gt;Text entered in the article is typically broken down into individual paragraph elements. You can add a background image by applying the style property to one or more paragraphs, or you can also wrap the entire article in a dev element and style that. Here is an example with a div (would be the same for paragraph - I have remove actual text to make the code block smaller):&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="background-image: url('https://images.pexels.com/photos/255379/pexels-photo-255379.jpeg'); background-repeat: no-repeat; background-attachment: fixed; background-size: 100% 100%;"&amp;gt;
&amp;lt;p&amp;gt;Paragraph 1&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;Paragraph 2&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;Paragraph 3&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;​&lt;/LI-CODE&gt;This is how this looks with lorem ipsum text:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaszloBalla_0-1677857730522.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/244732iF2005922592587B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaszloBalla_0-1677857730522.png" alt="LaszloBalla_0-1677857730522.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;For portal usage, you could create a "wrapper" widget.&lt;BR /&gt;Basically a custom widget, that would "embed" the out of the box 'Knowledge Article Content' widget (or whatever you use), but would have your custom CSS in it. On the server side of the widget, you could look up which template the article is based on (by using 'sys_class_name'), and then based on that, apply whatever values you want for the panel-body class. Here's a screenshot where I just added a background image to that class in dev console of the browser:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaszloBalla_1-1677858290879.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/244734iDC8D65C2EDCA6CC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaszloBalla_1-1677858290879.png" alt="LaszloBalla_1-1677858290879.png" /&gt;&lt;/span&gt;
&lt;P&gt;You can see it fills the whole section. Of course you can target any specific element or class in your css.&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:45:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495817#M488319</guid>
      <dc:creator>laszloballa</dc:creator>
      <dc:date>2023-03-03T15:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you set a background image on a knowledge article template</title>
      <link>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495843#M488324</link>
      <description>&lt;P&gt;Hi Laszlo, Thank you for your reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So you know where I can edit the source code for a template?&amp;nbsp;&lt;BR /&gt;I can see in the knowledge article itself but not where to put it when creating a template?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:01:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495843#M488324</guid>
      <dc:creator>Alex319</dc:creator>
      <dc:date>2023-03-03T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you set a background image on a knowledge article template</title>
      <link>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495878#M488328</link>
      <description>&lt;P&gt;Hey Alex,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a template, you can define this in the Field Style (once you add a field to the template), like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaszloBalla_0-1677861013112.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/244757i7439A56B431C04A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaszloBalla_0-1677861013112.png" alt="LaszloBalla_0-1677861013112.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note: it will not be displayed while creating the article, even in the source code. However as soon as the article is published, it is applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:31:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/can-you-set-a-background-image-on-a-knowledge-article-template/m-p/2495878#M488328</guid>
      <dc:creator>laszloballa</dc:creator>
      <dc:date>2023-03-03T16:31:18Z</dc:date>
    </item>
  </channel>
</rss>

