Zip file path access for Static Resource not working

  • 2
  • Problem
  • Updated 10 months ago
  • Solved
Hello!

I'm running 11.0.4 and can't seem to get the file path field to reference a css file in a static resource zip file. When I search the file path it doesn't give me any results to select and so I can't save.

Any thoughts?

Cheers!

Louis

Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb

Posted 10 months ago

  • 2
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
I encountered this as well. My workaround was to move the page to a 9.5 org, edit it there, then move it back. If you have the same static resource in both orgs it should work, just don't touch it once it comes back to Millau. 
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb
That workaround took some dedication, Jack...

Any chance for a fix, fine Skuid folk?

In the meantime, I wonder if there's an XML workaround...
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
Here's the XML from a css static resource zip, paste this within your <css> tag and it should work:  <cssitem location="staticresource" name="FontAwesome" cachelocation="false" url="" namespace="" filepath="font-awesome-4.6.3/css/font-awesome.min.css"/>
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb
:D

Thanks Jack. You took my hint and ran with it.
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb
Awesome - I can confirm that the XML fix works. Thanks again!

I've also learned, whilst looking at this, that if you do a

<ltng:require styles=blahblah />

in a lightning component which references a Skuid page then Skuid will also pull those styles into the referenced Skuid page, which is cool. Unless it's just a cache thing.
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
FYI, looks like maybe this was fixed in the latest Millau release 11.0.5 https://www.skuid.com/releases/salesforce/