Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

INLINESVG not working when I have a custom (my own) path.


I have an extension folder with an images path to put all my custom icons, but inlineSVG does not work when I refer to my SVGS. They do not load at all. When I put it inside the metronic assets folder they load fine.

Is there a predefined URL set by the module somewhere? I would like to use my own path.

Its in Angular


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


I cannot open the link. Can you please make it public? Your images folder is inside src folder?

Thanks



This does not work. It can’t find it even if I put it at Tio level.

./images/myfile.svg



Hi,

It seems like your SVG files need to be placed under the src folder, and then you can reference them using a path starting with ./. For example:

[inlineSVG]=""./assets/media/svg/avatars/001-boy.svg""

This should allow you to use your custom path for SVG files in Angular with the InlineSVG module.

Thanks



Here are the images proving it doesnt work.






Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(