How can I get URI to plugin resources?

Hello How can I get URI to plugin resources? I assume that my plugin could be stored in Local folder or Community folder (or event, Backend, Core and etc.) How can I get the correct URI to my resources (css, img) to include it on webpage? Thanks

Hello, You can use smarty filter {link}. For example: {link file=‚frontend/_resources/images/user-icon.jpg‘ fullPath=true} The path here is relative to „[plugin home]/Views/“. Also make sure that function „addTemplateDir(…)“ is called in plugin bootstrap file.

You can also use YourBootstrap::getPath() to get the path to your plugin folder. Kind regards