<?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>topic Adding a custom CSS to Alfresco Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258171#M211301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My users request that they can print out web pages, so I'm planning to include a CSS file specifically for printing through the media="print" tag. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Alfresco documentation does not explicitly mention the availability of such a file, so I guess I need to include it manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an extension point that allows me to link an additional CSS file, perhaps even in a general per-theme way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;— Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2012 08:32:32 GMT</pubDate>
    <dc:creator>technaton</dc:creator>
    <dc:date>2012-06-22T08:32:32Z</dc:date>
    <item>
      <title>Adding a custom CSS to Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258171#M211301</link>
      <description>Hello everybody!My users request that they can print out web pages, so I'm planning to include a CSS file specifically for printing through the media="print" tag. The Alfresco documentation does not explicitly mention the availability of such a file, so I guess I need to include it manually.Is there</description>
      <pubDate>Fri, 22 Jun 2012 08:32:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258171#M211301</guid>
      <dc:creator>technaton</dc:creator>
      <dc:date>2012-06-22T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom CSS to Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258172#M211302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in Alfresco 4 you should be able to do this via a Surf Extension Module that is keyed to your theme (via evaluator) and which customizes the /org/alfresco/components/head/resources component to inject CSS imports into the markup regions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 08:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258172#M211302</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-06-22T08:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom CSS to Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258173#M211303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your pointers. However, I'm stuck right now. I've read David Draper's posts about evaluators (e.g., &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/2011/07/29/sub-component-evaluations/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/2011/07/29/sub-component-evaluations/&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I do not know how to create a java class that is called during rendering and that injects a CSS file (with media tag). Do I need to call it from the evaluator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;— Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:28:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258173#M211303</guid>
      <dc:creator>technaton</dc:creator>
      <dc:date>2012-06-22T12:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom CSS to Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258174#M211304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please also read the other posts from Davids blog - this should hopefully help you see things a bit more clearly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the approach I outlined you need to implement a evaluator Java class that implements ExtensionModuleEvlauator and checks the current theme. For the injection part, you need to configure a "customization" which targets the web script I mentioned and implement a small FTL template that renders the stylesheet-import code (HTML) using a @markup macro-call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:38:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258174#M211304</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-06-22T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom CSS to Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258175#M211305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it took longer than I wanted, but I'd like to share the solution with the community. I packaged it in form of an AMP so that everybody could benefit from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to skip the evaluator part at first and include a general print.css file. It comes with some sane defaults and looks quite nice. Next item on the TODO list is to actually introduce one, but let it check whether a theme-specific print.css override exists and apply that on top of the default style sheet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The source code is available on Github: &lt;/SPAN&gt;&lt;A href="https://github.com/Wilhelm-Buechner-Hochschule/Alfresco-Wiki-Printout" rel="nofollow noopener noreferrer"&gt;https://github.com/Wilhelm-Buechner-Hochschule/Alfresco-Wiki-Printout&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The finished AMP can also be obtained via addons.alfresco.com: &lt;/SPAN&gt;&lt;A href="http://addons.alfresco.com/addons/wiki-printout" rel="nofollow noopener noreferrer"&gt;http://addons.alfresco.com/addons/wiki-printout&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if its only a small addon, I hope it might be useful for somebody. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your hints, Axel!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;— Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 10:44:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-css-to-alfresco-share/m-p/258175#M211305</guid>
      <dc:creator>technaton</dc:creator>
      <dc:date>2012-11-29T10:44:41Z</dc:date>
    </item>
  </channel>
</rss>

