0

Skinning the content manager explorer is already in place.

I have tried below option to add label in TitlebarContainer.

  1. Created component to control show/hide of message in Titlebar.

  2. Created javascript file to read configuration component[show/hide the message].

  3. Added label[Value from component] next to "Breadcrumb" section in Titlebar through javascript.

  4. Included javascript reference in "web\WebUI\Editors\CME\Configuration\CME.config" file.

    <group name="SDL.Web.UI.Editors.CME.Theme.Environments.Development">
       <fileset>
            <file type="style">{ThemePath}/Environments/FILENAME.CSS</file>
            <file type="script">{ThemePath}/Environments/CustomMessage.js</file>
      </fileset>
    </group>
    
  5. Increased the value of the modification attribute in "web\WebUI\WebRoot\Configuration\System.config"

I have to re-write the script(if changes in "TitlebarContainer" elements) to use the label implementation in Tridion upgrades.

Adding a script reference in group "SDL.Web.UI.Editors.CME.Theme.Environments.Development" to implement this label is a valid approach ?.

4
  • I'll add an older example, though some elements might have changed since my example for Tridion 2011. What have you tried? Are you looking to add a label or a more temporary message? Commented Sep 29, 2020 at 22:51
  • @Alvin Reyes, My requirement is to Show/Hide message (a label). I tried an option to add label, please find the details in answer section.
    – Bala
    Commented Sep 30, 2020 at 14:06
  • Okay, see my comment to your answer. That information is better in your original question above or as a new question (basically can you reference a JavaScript file directly in the CME.config?). Commented Oct 1, 2020 at 16:42
  • @Alvin Reyes: Updated the question. I tried adding a javascript reference in CME.config and added the label. Not sure whether it is recommended or not.
    – Bala
    Commented Oct 1, 2020 at 20:44

1 Answer 1

1

If you're willing to use the environment name for that message, you can follow the instructions to skin the Content Manager Explorer for SDL Web 8.5.

I created an older example, but for SDL Tridion 2011 on Tridion Developer. The main part was to uncomment and update the environment > name node in CME.config:

<environment>
    <name>CreateAndBreak</name>
    <resourcegroup>...</resourcegroup>
</environment>

Otherwise other options for setting a message could be:

  • Custom page to point to a page with instructions as a default page for users to see
  • A slide-out navigation integration or label to set some text and/or page
  • JavaScript, Ajax, or similar pop-up in a basic GUI extension

Though you could try to modify CME files, I wouldn't recommend that as it's not a valid extension approach and could/will change in an upgrade.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.