Loader issue while adding stylesheets

Hello, I'm reaching out to the community as I'm puzzled by an issue found while customizing OTRS; I couldn't find an answer in the documentation. It's likely some misinterpretation of what's going on or some silly mistake, so probably some fresh eyes could help out. The problem has to do with the CSS minification / loading; I can add entries to "Loader::Customer::CommonCSS", and it shows up as: { '001-MyCompany' => [ 'Core.Control.css', 'Core.Default.css', 'Core.Form.css', 'Core.Login.css' ], '000-Framework' => [ 'Core.Reset.css', 'Core.Default.css', 'Core.Form.css', 'Core.Dialog.css', 'Core.Tooltip.css', 'Core.Login.css', 'Core.Control.css', 'Core.Table.css', 'Core.TicketZoom.css', 'Core.InputFields.css', 'Core.Print.css', 'Core.Animations.css' ] }; Yet the Loader isn't adding those files to the css cache file it generates. Debugging suggest _HandleCSSList is not getting the first list. How it could be that LoaderCreateCustomerCSSCalls isn't pushing those tho the list of CSS files passed to _HandleCSSList? Or... how am I supposed to feed it new files? Best regards. PS: I'm using OTRS 6.0.5 (I'll soon upgrade to 6.0.6, but there seems no differences there).

Hello Ismael, the files you added are already there in 000-Framework and will thus have no effect on the final list. Adding new files should work though. The files need to be present in the currently selected skin (or as a fallback in the »default« skin). Best regards, Martin Gruner Team Lead R&D OTRS AG Bahnhofplatz 1a 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel ____________________________________________________ OTRS Business Solution™ 6 – Organisation. Sicherheit. Kommunikation. Struktur. – Flexible Lösungen für Erfolg im Unternehmen Link: https://www.otrs.com/?lang=de&utm_id=1032 Mehr Infos: + Lösung: https://www.otrs.com/produkte/?lang=de&utm_id=1033 + Success Stories: https://www.otrs.com/kunden/success-stories/?lang=de&utm_id=1034 + Trainings: https://www.otrs.com/public-otrs-trainings/?lang=de&utm_id=1035
Am 03.04.2018 um 20:41 schrieb Ismael Luceno
: Hello,
I'm reaching out to the community as I'm puzzled by an issue found while customizing OTRS; I couldn't find an answer in the documentation. It's likely some misinterpretation of what's going on or some silly mistake, so probably some fresh eyes could help out.
The problem has to do with the CSS minification / loading; I can add entries to "Loader::Customer::CommonCSS", and it shows up as:
{ '001-MyCompany' => [ 'Core.Control.css', 'Core.Default.css', 'Core.Form.css', 'Core.Login.css' ], '000-Framework' => [ 'Core.Reset.css', 'Core.Default.css', 'Core.Form.css', 'Core.Dialog.css', 'Core.Tooltip.css', 'Core.Login.css', 'Core.Control.css', 'Core.Table.css', 'Core.TicketZoom.css', 'Core.InputFields.css', 'Core.Print.css', 'Core.Animations.css' ] };
Yet the Loader isn't adding those files to the css cache file it generates. Debugging suggest _HandleCSSList is not getting the first list.
How it could be that LoaderCreateCustomerCSSCalls isn't pushing those tho the list of CSS files passed to _HandleCSSList?
Or... how am I supposed to feed it new files?
Best regards.
PS: I'm using OTRS 6.0.5 (I'll soon upgrade to 6.0.6, but there seems no differences there). _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

On 04/Apr/2018 10:24, Martin Gruner wrote:
Hello Ismael,
the files you added are already there in 000-Framework and will thus have no effect on the final list. Adding new files should work though. The files need to be present in the currently selected skin (or as a fallback in the »default« skin).
Thanks! It's so frustrating when you know it's something silly but yet you keep missing it... I somehow couldn't connect what I've read with what was going on. IIRC, files in "default" are read first, then the custom skin. On top of that I'm having another issue, which is I can't seem to find the way to select between the Customer and Agent skins in my modules; surely I missed it while skimming through the documentation... Best regards.

I'm not sure it was clear, so I'm rephrasing: I've written a customer module, but it's loading the Agent skin, and I don't see a way to choose between those, so I'm guessing I did something wrong but can't figure out what... On 04/Apr/2018 16:30, Ismael Luceno wrote:
On 04/Apr/2018 10:24, Martin Gruner wrote:
Hello Ismael,
the files you added are already there in 000-Framework and will thus have no effect on the final list. Adding new files should work though. The files need to be present in the currently selected skin (or as a fallback in the »default« skin).
Thanks!
It's so frustrating when you know it's something silly but yet you keep missing it... I somehow couldn't connect what I've read with what was going on. IIRC, files in "default" are read first, then the custom skin.
On top of that I'm having another issue, which is I can't seem to find the way to select between the Customer and Agent skins in my modules; surely I missed it while skimming through the documentation...
Best regards. _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
-- Ismael Luceno http://iodev.co.uk/

Hello Ismael, can you give more detail about what you did and what didn’t work, please? Best regards, Martin Gruner Team Lead R&D OTRS AG Bahnhofplatz 1a 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel ____________________________________________________ OTRS Business Solution™ 6 – Organisation. Sicherheit. Kommunikation. Struktur. – Flexible Lösungen für Erfolg im Unternehmen Link: https://www.otrs.com/?lang=de&utm_id=1032 Mehr Infos: + Lösung: https://www.otrs.com/produkte/?lang=de&utm_id=1033 + Success Stories: https://www.otrs.com/kunden/success-stories/?lang=de&utm_id=1034 + Trainings: https://www.otrs.com/public-otrs-trainings/?lang=de&utm_id=1035
Am 04.04.2018 um 21:44 schrieb Ismael Luceno
: I'm not sure it was clear, so I'm rephrasing: I've written a customer module, but it's loading the Agent skin, and I don't see a way to choose between those, so I'm guessing I did something wrong but can't figure out what...
On 04/Apr/2018 16:30, Ismael Luceno wrote:
On 04/Apr/2018 10:24, Martin Gruner wrote:
Hello Ismael,
the files you added are already there in 000-Framework and will thus have no effect on the final list. Adding new files should work though. The files need to be present in the currently selected skin (or as a fallback in the »default« skin).
Thanks!
It's so frustrating when you know it's something silly but yet you keep missing it... I somehow couldn't connect what I've read with what was going on. IIRC, files in "default" are read first, then the custom skin.
On top of that I'm having another issue, which is I can't seem to find the way to select between the Customer and Agent skins in my modules; surely I missed it while skimming through the documentation...
Best regards. _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
-- Ismael Luceno http://iodev.co.uk/ _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

It turned out to be just another silly mistake in our setup. Thanks. On 05/Apr/2018 08:51, Martin Gruner wrote:
Hello Ismael,
can you give more detail about what you did and what didn’t work, please?
Best regards,
Martin Gruner Team Lead R&D
OTRS AG Bahnhofplatz 1a 94315 Straubing
T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/
Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel
____________________________________________________
OTRS Business Solution™ 6 – Organisation. Sicherheit. Kommunikation. Struktur. – Flexible Lösungen für Erfolg im Unternehmen Link: https://www.otrs.com/?lang=de&utm_id=1032
Mehr Infos: + Lösung: https://www.otrs.com/produkte/?lang=de&utm_id=1033 + Success Stories: https://www.otrs.com/kunden/success-stories/?lang=de&utm_id=1034 + Trainings: https://www.otrs.com/public-otrs-trainings/?lang=de&utm_id=1035
Am 04.04.2018 um 21:44 schrieb Ismael Luceno
: I'm not sure it was clear, so I'm rephrasing: I've written a customer module, but it's loading the Agent skin, and I don't see a way to choose between those, so I'm guessing I did something wrong but can't figure out what...
On 04/Apr/2018 16:30, Ismael Luceno wrote:
On 04/Apr/2018 10:24, Martin Gruner wrote:
Hello Ismael,
the files you added are already there in 000-Framework and will thus have no effect on the final list. Adding new files should work though. The files need to be present in the currently selected skin (or as a fallback in the »default« skin).
Thanks!
It's so frustrating when you know it's something silly but yet you keep missing it... I somehow couldn't connect what I've read with what was going on. IIRC, files in "default" are read first, then the custom skin.
On top of that I'm having another issue, which is I can't seem to find the way to select between the Customer and Agent skins in my modules; surely I missed it while skimming through the documentation...
Best regards. _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
-- Ismael Luceno http://iodev.co.uk/ _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
-- Ismael Luceno http://iodev.co.uk/
participants (2)
-
Ismael Luceno
-
Martin Gruner