Skip to main content
added some details about the sample
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Don't remember Publication icons ever being different depending on type, but I did once create a UI extension that changed the icon of certain Publications (we made them pink cloud icons ;o), so that certainly is possible.

If I remember correctly I usedthink the icon based on a list extension for itPublication Type was pretty simple, will look tomorrow ifusing a standard UI Extension (Editor), with the following configuration:

<extensions>
    <ext:editorextensions>
        <ext:editorextension target="CME">
            <ext:editurls />
            <ext:listdefinitions />
            <ext:itemicons>
                <icon match="^T1L[01]P[01]S5$" path="${theme}Images/Icons/${icon}.${size}x${size}.png" />
            </ext:itemicons>
            ....

And then I can findhad the following icons created:

  • T1L0P0S5.16x16.gray.png
  • T1L0P0S5.16x16.png
  • T1L0P0S5.24x24.png
  • T1L0P0S5.32x32.png
  • T1L0P0S5.48x48.png
  • T1L0P1S5.16x16.png
  • T1L0P1S5.24x24.png
  • T1L0P1S5.32x32.png
  • T1L0P1S5.48x48.png
  • T1L1P0S5.16x16.png
  • T1L1P0S5.24x24.png
  • T1L1P0S5.32x32.png
  • T1L1P0S5.48x48.png
  • T1L1P1S5.16x16.png
  • T1L1P1S5.24x24.png
  • T1L1P1S5.32x32.png
  • T1L1P1S5.48x48.png

Note the S5 in my icon names and in the match of the configuration. We had created an additional Publication Type in the Tridion.ContentManager.config with id 5.

I think if you match S1 and S2 and create separate icons for that, you might be there with a code sample backsimple UI (Editor) Extension.

Don't remember Publication icons ever being different depending on type, but I did once create a UI extension that changed the icon of certain Publications (we made them pink cloud icons ;o), so that certainly is possible.

If I remember correctly I used a list extension for it, will look tomorrow if I can find a code sample back.

Don't remember Publication icons ever being different depending on type, but I did once create a UI extension that changed the icon of certain Publications (we made them pink cloud icons ;o), so that certainly is possible.

I think the icon based on a Publication Type was pretty simple, using a standard UI Extension (Editor), with the following configuration:

<extensions>
    <ext:editorextensions>
        <ext:editorextension target="CME">
            <ext:editurls />
            <ext:listdefinitions />
            <ext:itemicons>
                <icon match="^T1L[01]P[01]S5$" path="${theme}Images/Icons/${icon}.${size}x${size}.png" />
            </ext:itemicons>
            ....

And then I had the following icons created:

  • T1L0P0S5.16x16.gray.png
  • T1L0P0S5.16x16.png
  • T1L0P0S5.24x24.png
  • T1L0P0S5.32x32.png
  • T1L0P0S5.48x48.png
  • T1L0P1S5.16x16.png
  • T1L0P1S5.24x24.png
  • T1L0P1S5.32x32.png
  • T1L0P1S5.48x48.png
  • T1L1P0S5.16x16.png
  • T1L1P0S5.24x24.png
  • T1L1P0S5.32x32.png
  • T1L1P0S5.48x48.png
  • T1L1P1S5.16x16.png
  • T1L1P1S5.24x24.png
  • T1L1P1S5.32x32.png
  • T1L1P1S5.48x48.png

Note the S5 in my icon names and in the match of the configuration. We had created an additional Publication Type in the Tridion.ContentManager.config with id 5.

I think if you match S1 and S2 and create separate icons for that, you might be there with a simple UI (Editor) Extension.

Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Don't remember Publication icons ever being different depending on type, but I did once create a UI extension that changed the icon of certain Publications (we made them pink cloud icons ;o), so that certainly is possible.

If I remember correctly I used a list extension for it, will look tomorrow if I can find a code sample back.