Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1118

Sax the project idof the main category of the project into the simples services

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.3, 2.2.0
    • None
    • None
    • None
    • 4.5 M4

      Like it is already done in the project-catalogue service, we need the color of the main category of the project.

       

      Please, add it to this simples services : 

      • filtered-events (workspaces\pages\services\simple\filtered-events\filtered-events.xsl)
      • document-stream (workspaces\pages\services\simple\document\document-stream.xsl)
      • tasks (workspaces\pages\services\simple\taskslist\taskslist.xsl)
      • activity-stream (workspaces\pages\services\simple\activity-stream\activity-stream.xsl)

          [WORKSPACES-1118] Sax the project idof the main category of the project into the simples services

          Laurence Aumeunier added a comment - - edited

          For tasks, documents and calendar events, the project category is now saxed as following

          <projectCategory id="project-category://80213f44-7dc8-4d1a-b7b3-502331881a9e" name="NAME" color="#6699FF">Label</projectCategory>
          

          The activity stream we cannot add the project category. Use the ProjectXSLTHelper instead.

          Laurence Aumeunier added a comment - - edited For tasks, documents and calendar events, the project category is now saxed as following <projectCategory id= "project-category://80213f44-7dc8-4d1a-b7b3-502331881a9e" name= "NAME" color= "#6699FF" > Label </projectCategory> The activity stream we cannot add the project category. Use the ProjectXSLTHelper instead.

          Laurence Aumeunier added a comment - - edited

          Yes the ProjectXSLTHelper is your man. There is a lot of helper for project, you could easily retrieve the category color.

          Exemples d'utilisation

          <xsl:variable name="color" select="project:projectCategoryColor(projectName)"/>
                  <a href="{projectUrl}" class="mb-0" style="color: {$color/main}">
                      <i class="fas fa-dice-d6"></i>
                      <xsl:value-of select="projectTitle"/>
                  </a>
          

          Laurence Aumeunier added a comment - - edited Yes the ProjectXSLTHelper is your man. There is a lot of helper for project, you could easily retrieve the category color. Exemples d'utilisation < xsl:variable name= "color" select= "project:projectCategoryColor(projectName)" /> <a href= "{projectUrl}" class= "mb-0" style= "color: {$color/main}" > <i class= "fas fa-dice-d6" > </i> < xsl:value-of select= "projectTitle" /> </a>

          from project id you will be able to find color with helper

          Raphaël Franchet added a comment - from project id you will be able to find color with helper

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: