Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing files ? #1

Closed
Spheerys opened this issue May 14, 2018 · 15 comments
Closed

Missing files ? #1

Spheerys opened this issue May 14, 2018 · 15 comments
Labels

Comments

@Spheerys
Copy link

Spheerys commented May 14, 2018

Hi !

I have installed the transport package manually without problem and followed the instruction to use this addon, but when I try to use it on a TVs, the list is empty.
After anabling debug mode on SuperBoxSelect, I have found this error :

[2018-05-14 11:58:35] (ERROR @ /home/user/web/website.org/public_html/core/model/modx/modx.class.php : 1706) Processor /home/user/web/website.org/public_html/core/components/superboxfontawesome/processors/types/resources/getlist.php does not exist; Array
(
    [processors_path] => /home/user/web/website.org/public_html/core/components/superboxfontawesome/processors/
    [location] => 
    [action] => types/resources/getlist
)

It's look like at least a file is missing : /core/components/superboxfontawesome/processors/types/resources/getlist.php

What did I miss ?

@Jako
Copy link
Owner

Jako commented May 14, 2018

Have you installed both packages (SuperBoxSelect + SuperBoxFontawesome)?

@Spheerys
Copy link
Author

yes of course.

@Jako
Copy link
Owner

Jako commented May 14, 2018

Did you save and reload the template variable and set the Type to FontAwesome Icons?

@Jako
Copy link
Owner

Jako commented May 14, 2018

It should request the list from /core/components/superboxfontawesome/processors/types/fontawesome/getlist.php

@Spheerys
Copy link
Author

@Jako
Copy link
Owner

Jako commented May 14, 2018

The value in Type looks wrong. Is this a dropdown select? Could you select FontAwesome Icons there?

@Spheerys
Copy link
Author

No I can't : I can only select Resource or User

@Jako
Copy link
Owner

Jako commented May 15, 2018

Please reload the manager, after you have saved the vemplate variable with the new package setting. Then the type dropdown will have different values. I have done the reload, when the screen gets white in the following screencast.

howto

@Jako Jako added the question label May 15, 2018
@Jako Jako closed this as completed May 15, 2018
@Jako
Copy link
Owner

Jako commented May 15, 2018

I would prefer to change the type dropdown (without a reload by ExtJS) when the package is changed, but this is not that trivial.

@Spheerys
Copy link
Author

Spheerys commented May 16, 2018

Yes I did this with success by following your demo ! Thanks !
But I now have another issue : the TV's still doesn't work because this error :

[2018-05-16 13:15:55] (ERROR in superboxselect.fontawesome @ /home/User/web/website.org/public_html/core/components/superboxfontawesome/processors/types/fontawesome/getlist.class.php : 82) Could not find the icons in the FontAwesome scss!

I thought FontAwesome font was loading natively by MODX Manager....
How can I load it to make this works ?

@Jako
Copy link
Owner

Jako commented May 16, 2018

It uses/parses https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/scss/_icons.scss per default which seems to be not available anymore.

You could create a system setting superboxselect.fontawesomeUrl and set this to https://raw.githubusercontent.com/FortAwesome/Font-Awesome/fa-4/scss/_icons.scss or patch the url in line 16 of core/components/superboxfontawesome/processors/types/fontawesome/getlist.class.php

@Spheerys
Copy link
Author

Yes it's works like a charm now !
Thank you very much !!

@Jako
Copy link
Owner

Jako commented May 16, 2018

If you want to use this with FontAwesome 5, you have to change the url to i.e. https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/web-fonts-with-css/scss/_icons.scss

I hope the regex works with that.

@Spheerys
Copy link
Author

It's nearly working with V5
Have a look here : https://i.imgur.com/z1dbQzl.png
Not all the icons are here.
In my case, the V4 version is enough :)

@Jako
Copy link
Owner

Jako commented May 17, 2018

With version 5, you additionally have to load the FontAwesome 5 CSS in the manager. But that will create some manager style issues and it can't be done in the getlist processor of this package.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants