Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » SVG in EPF
SVG in EPF [message #1407790] Wed, 13 August 2014 13:03 Go to next message
Gabriel Hu is currently offline Gabriel HuFriend
Messages: 21
Registered: September 2011
Junior Member
Hi
I want to embed an interactive *.svg file in EPF. Do you know how ?
Re: SVG in EPF [message #1417694 is a reply to message #1407790] Fri, 05 September 2014 22:31 Go to previous messageGo to next message
Bruce MacIsaac is currently offline Bruce MacIsaacFriend
Messages: 61
Registered: July 2009
Member
The trick is to get EPF Composer to copy the svg file over during publishing.
Example and template elements allow you to attach files, and those files are copied over during publishing.

So here is what I did:

1. Created a template
2. Attached an svg file. It gets placed in the "resources" subfolder of the templates directory in my plug-in.
3. In another element's description (in this case, a concept page) I referenced
the svg file using a relative path:
E.g. <img src="../templates/resources/example_square.svg" />

Hope that helps.


Re: SVG in EPF [message #1417695 is a reply to message #1417694] Fri, 05 September 2014 22:33 Go to previous message
Bruce MacIsaac is currently offline Bruce MacIsaacFriend
Messages: 61
Registered: July 2009
Member
I noticed that the svg file did not render correctly in preview or browsing mode, but when published, it worked just fine.
Previous Topic:EPF All practices library
Next Topic:Published Navigation Views
Goto Forum:
  


Current Time: Thu Dec 05 22:52:37 GMT 2024

Powered by FUDForum. Page generated in 0.03159 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top