Menu

Compiling of custom Ticketmodel with colors fails

med
2022-02-28
2022-03-03
  • med

    med - 2022-02-28

    Hi,
    i cant run through setup with my custom Ticket model. It works nice on 2.6 and 2.7 without style tags. But with style tags in 3.0.0 i run in errors.

    1.) Using var

    <style>
                   <main_color>var(--ibo-color-transparent)</main_color>
                   <complementary_color>var(--ibo-body-text-color)</complementary_color>
                   <decoration_classes>far fa-bell</decoration_classes>  
    </style>
    

    That runns into error: excpected a color, function given…

    2.) Using ccs colors

    No errors on that, but fails on SQL statement:

    Failed to issue SQL query: query = CREATE TABLE ticket_quotation (id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, status ENUM('assigned#2C5382white','closed#B83280white','escalated_ttoredwhitefas fa-fire','escalated_ttrredwhitefas fa-fire','new#2C5382white','new_message_caller#2C5382white','pending#F6AE55whitefas fa-hourglass-half','resolved#689F38whitefas fa-check') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'new', last_status….

    3.) Using PHP vars from original ticket classes

    <style>
    <main_color>$ibo-lifecycle-success-state-primary-color</main_color>
    <complementary_color>$ibo-lifecycle-success-state-secondary-color</complementary_color>
    <decoration_classes>fas fa-user-check</decoration_classes>
    </style>
    

    Tells something about undefined var …

    1. should work without any issues as far as i understand the documentation from https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Aenum-colors
     
  • med

    med - 2022-03-01

    As in https://sourceforge.net/p/itop/discussion/customizing-itop/thread/34d5c183fb/ stated, you have to change your XML file to iTop design 3.0..

    <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0"></itop_design>

     
  • Vincent @ Combodo

    An iTop version 2.7.x cannot work with an extension providing an XML in version 3.0.
    I would have expect it to break at compilation time rather than when updating the database, but the description of your initial conditions are rather fuzzy, so I am not sure how to reproduce...

    Last but not least, I suspect that the syntax using var(--ibo-color-transparent) is no more working and should be replaced by $ibo-color-transparent. I will update the wiki...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.