<?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 How to add custom svg image as an icon for the stencil? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29458#M12555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement that a user should able to specify svg icon file as per his liking as stencil icon. As per requirement , I have also to store svg icon document as complete string in our Database. Currently I have implemented by considering one place holder&amp;nbsp;&lt;SPAN&gt;$SVGIMG &amp;nbsp;in the stencil xml below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?&amp;gt;\n&amp;lt;svg\n &amp;nbsp; xmlns=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2000/svg" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2000/svg&lt;/A&gt;&lt;SPAN&gt;\"\n &amp;nbsp; xmlns:svg=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2000/svg" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2000/svg&lt;/A&gt;&lt;SPAN&gt;\"\n &amp;nbsp; xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ryx=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.b3mn.org/oryx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.b3mn.org/oryx&lt;/A&gt;&lt;SPAN&gt;\"\n &amp;nbsp; xmlns:xlink=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/xlink" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/xlink&lt;/A&gt;&lt;SPAN&gt;\"\n\n &amp;nbsp; width=\"102\"\n &amp;nbsp; height=\"82\"\n &amp;nbsp; version=\"1.0\"&amp;gt;\n &amp;nbsp;&amp;lt;defs&amp;gt;&amp;lt;/defs&amp;gt;\n &amp;nbsp;&amp;lt;oryx:magnets&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"1\" oryx:cy=\"20\" oryx:anchors=\"left\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"1\" oryx:cy=\"40\" oryx:anchors=\"left\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"1\" oryx:cy=\"60\" oryx:anchors=\"left\" /&amp;gt;\n &amp;nbsp;\t\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"25\" oryx:cy=\"79\" oryx:anchors=\"bottom\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"50\" oryx:cy=\"79\" oryx:anchors=\"bottom\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"75\" oryx:cy=\"79\" oryx:anchors=\"bottom\" /&amp;gt;\n &amp;nbsp;\t\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"99\" oryx:cy=\"20\" oryx:anchors=\"right\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"99\" oryx:cy=\"40\" oryx:anchors=\"right\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"99\" oryx:cy=\"60\" oryx:anchors=\"right\" /&amp;gt;\n &amp;nbsp;\t\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"25\" oryx:cy=\"1\" oryx:anchors=\"top\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"50\" oryx:cy=\"1\" oryx:anchors=\"top\" /&amp;gt;\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"75\" oryx:cy=\"1\" oryx:anchors=\"top\" /&amp;gt;\n &amp;nbsp;\t\n &amp;nbsp;\t&amp;lt;oryx:magnet oryx:cx=\"50\" oryx:cy=\"40\" oryx:default=\"yes\" /&amp;gt;\n &amp;nbsp;&amp;lt;/oryx:magnets&amp;gt;\n &amp;nbsp;&amp;lt;g pointer-events=\"fill\" oryx:minimumSize=\"50 40\"&amp;gt;\n\t&amp;lt;rect id=\"text_frame\" oryx:anchors=\"bottom top right left\" x=\"1\" y=\"1\" width=\"94\" height=\"79\" rx=\"10\" ry=\"10\" stroke=\"none\" stroke-width=\"0\" fill=\"none\" /&amp;gt;\n\t&amp;lt;rect id=\"bg_frame\" oryx:resize=\"vertical horizontal\" x=\"0\" y=\"0\" width=\"100\" height=\"80\" rx=\"10\" ry=\"10\" stroke=\"#bbbbbb\" stroke-width=\"1\" fill=\"#f9f9f9\" /&amp;gt;\n\t\t&amp;lt;text \n\t\t\tfont-size=\"12\" \n\t\t\tid=\"text_name\" \n\t\t\tx=\"50\" \n\t\t\ty=\"40\" \n\t\t\toryx:align=\"middle center\"\n\t\t\toryx:fittoelem=\"text_frame\"\n\t\t\tstroke=\"#373e48\"&amp;gt;\n\t\t&amp;lt;/text&amp;gt;\n\t\n\t&amp;lt;g id=\"serviceTask\" transform=\"translate(3,3)\"&amp;gt;\n\t&amp;lt;svg viewBox="1500 0 &amp;nbsp;20000 20000"&amp;gt;\n\t$SVGIMG&amp;lt;/svg&amp;gt;\n\t&amp;lt;/g&amp;gt;\n &amp;nbsp;\n\t&amp;lt;g id=\"parallel\"&amp;gt;\n\t\t&amp;lt;path oryx:anchors=\"bottom\" fill=\"none\" stroke=\"#bbbbbb\" d=\"M46 70 v8 M50 70 v8 M54 70 v8\" stroke-width=\"2\" /&amp;gt;\n\t&amp;lt;/g&amp;gt;\n\t\n\t&amp;lt;g id=\"sequential\"&amp;gt;\n\t\t&amp;lt;path oryx:anchors=\"bottom\" fill=\"none\" stroke=\"#bbbbbb\" stroke-width=\"2\" d=\"M46,76h10M46,72h10 M46,68h10\"/&amp;gt;\n\t&amp;lt;/g&amp;gt;\n\t\n\t&amp;lt;g id=\"compensation\"&amp;gt;\n\t\t&amp;lt;path oryx:anchors=\"bottom\" fill=\"none\" stroke=\"#bbbbbb\" d=\"M 62 74 L 66 70 L 66 78 L 62 74 L 62 70 L 58 74 L 62 78 L 62 74\" stroke-width=\"1\" /&amp;gt;\n\t&amp;lt;/g&amp;gt;\n &amp;nbsp;&amp;lt;/g&amp;gt;\n&amp;lt;/svg&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replace the placeholder with &amp;nbsp;user provided svg icon file svgdocument &amp;nbsp;in the above xml and this view is being used for the stencil on the designer. To display the stencil in the pallet , svg icon file is used to &amp;nbsp;create one PNG file of size 16X16 and placed png file in activiti folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue which i am facing after my implementation is the stencil created on designer has dash line bigger than original stencil . The dockers also are placed far apart from the stencil. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the snapshot of the problem.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 13:27:08 GMT</pubDate>
    <dc:creator>actevityuser</dc:creator>
    <dc:date>2017-05-08T13:27:08Z</dc:date>
    <item>
      <title>How to add custom svg image as an icon for the stencil?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29458#M12555</link>
      <description>I have a requirement that a user should able to specify svg icon file as per his liking as stencil icon. As per requirement , I have also to store svg icon document as complete string in our Database. Currently I have implemented by considering one place holder&amp;nbsp;$SVGIMG &amp;nbsp;in the stencil xml below.&amp;lt;</description>
      <pubDate>Mon, 08 May 2017 13:27:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29458#M12555</guid>
      <dc:creator>actevityuser</dc:creator>
      <dc:date>2017-05-08T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom svg image as an icon for the stencil?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29459#M12556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using he custom stencilset feature of Enterprise Edition? If so, I would recommend you contact Alfresco support.&lt;/P&gt;&lt;P&gt;I have implemented a custom icon one time by overriding the SVG in the stencilset json but if I remember, it was a painful experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 13:09:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29459#M12556</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-09T13:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom svg image as an icon for the stencil?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29460#M12557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using open source package of alfresco and this our custom implementation and not Enterprise Designer. Your implementation and mine is almost similar other than the places we are doing the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 07:34:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-custom-svg-image-as-an-icon-for-the-stencil/m-p/29460#M12557</guid>
      <dc:creator>actevityuser</dc:creator>
      <dc:date>2017-05-11T07:34:04Z</dc:date>
    </item>
  </channel>
</rss>

