View Issue Details

IDProjectCategoryView StatusLast Update
0020097mantisbtplug-inspublic2017-02-26 21:18
Reporterbkraul Assigned Tocproensa  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0020097: CSS Scripts referenced with plugin_file do not handle linked assets correctly.
Description

When referencing CSS files using the plugin_file() function, any linked assets, such as embeddable fonts, or images declared in CSS, do not show up.

Steps To Reproduce

An example of this is having a CSS that references an embeddable font as follows:

/MyPlugin
|--/files
|---- style.css
|---- customfont.eot
|---- customfont.ttf
|---- mybg.png


In CSS:

@font-face {
font-family: customfont;
src: url('customfont.eot');
src: local(bttf_font), url('./customfont.ttf') format('opentype');
}

@bg {
background-image: url("./mybg.png");
}

TagsNo tags attached.

Activities

mboutell

mboutell

2017-02-14 10:19

reporter   ~0055673

I have the same issue.
Is there any solution ?

cproensa

cproensa

2017-02-14 13:46

developer   ~0055675

resources URLs must be of the form of "plugin_file.php?file=plugin_name/file"

see this plugin as an example
https://github.com/mantisbt-plugins/jQuery-UI

cproensa

cproensa

2017-02-14 13:47

developer   ~0055676

bkraul,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

mboutell

mboutell

2017-02-17 01:59

reporter   ~0055710

I'm sorry but it seems to be a little different in mantisbt v 1.3...

cproensa

cproensa

2017-02-17 03:08

developer   ~0055713

I'm sorry but it seems to be a little different in mantisbt v 1.3...

What do you mean?
AFAIK this method is applicable to versions 1.2.x, 1.3.x and 2.x

mboutell

mboutell

2017-02-17 03:16

reporter   ~0055714

I've tried this syntax with mantisbt 1.3 .
I need url in javascript files :

I got 2 errors :

  • "ERR_INVALID_URL"
    or "Resource interpreted as Image but transferred with MIME type text/html"

It was working on mantisbt 1.2