Activity Stream - Tracking a field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2020 12:29 PM
Hello community,
For every field tracked in 'Filter Activity' (funnel icon to the right of Activity Stream), when you change the value, the change shows up something like this.
I am trying to make this 'was' more prominent for fields like the description. For a longer description, it is difficult to look at a glance and find out what's changed. I want to change the color of this 'was' and add a line break. Please point me to where I can do this.
Thanks!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2020 01:49 PM
There would be two ways I know of that this can potentially be achieved.
1) Hack the DOM with a client script. Not recommended by SN but it looks like the class for the italicized text is unique so it would work.
2) You cannot access the "activity.xml" UI Macro. This is where you would ideally be able to set the style. My thought would be can you call the "activity.xml" UI Macro from within another UI Macro, and impose the style on it from there?
For example, you can create your own UI Macro that loads the default one via:
<g:inline template="activity.xml"/>
Would any style that you put in the "parent" UI Macro be passed through to the inline template? For example you could simply link an external style sheet:
<link href="sysid_of_stylesheet.cssdbx?" rel="stylesheet" type="text/css"/>
Now step 1 will work and step 2 is purely theoretical. But if step 2 works it would be a very good solution to your problem because it maintains everything OOB with no DOM manipulation.
Links I have bookmarked that go through pieces of this:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2020 02:46 PM
Thank you for these suggestions. Let me go ahead and try these and then come back here with an update.