Dashboards & Visualizations

6.2: SimpleXML form ignores stylesheet attribute

stu2
Explorer

I'm having trouble getting a stylesheet reference to work in an app SimpleXml form.

I've read the changes in 6.2, it seems like this should be supported.

http://answers.splunk.com/answers/171586/to-what-extent-we-can-customize-app-if-application.html

I have a css file in the proper location, and have tried dashboard.css and summary-dashboards.css. In the form itself I reference it as specified in the schema:

<form stylesheet="summary-dashboards.css">

The resulting page header doesn't include any custom stylesheets at all.

What's the trick?

Tags (2)

StewGoin1
Explorer

As discussed on #splunk:

Make sure you don't have a conflicting copy of the view in /local if you are editing in /default -- /local will win!

ziegfried
Influencer

Also, did you restart splunk/spluknweb after adding the CSS file to your app?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

To further help debugging, point your browser at http://splunkhost:8000/static/app/app_name/summary-dashboards.css - that'll show if the issue is the form linking to the CSS or Splunk even seeing the CSS.

jkat54
SplunkTrust
SplunkTrust

Does devtools in IE, firebug, or dev tools in chrome show any errors on the consoles?

Usually it will be something wrong with the permissions on the file, location of the file, etc. etc. If you're getting any errors while debugging in your favorite debug tools, please update your question with the errors.

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...