Asset Listing ZIP & SWF assets


#1

Is it possible to create Display Formats specifically for ZIP and SWF files within an asset listing?

 

I guess the problem is that these assets were uploaded as a file assets (as these formats are unavailable via New Child > FIle option) So not sure how to get around this.

 

Hoping to avoid using the 'File Format' for these as PDFs + Word docs assests are also included in the Asset Selection.


(Nic Hubbard) #2

No, there isn't a way to do a type format for assets types that don't exist. I think you might need to go with a javascript solution for this.


#3

That's a shame, thanks for your reply Nick.

 

I also discovered when a 'File' Display Format is created for an asset list, it trumps specific Dispaly Formats for all other Asset Selections removing the alternate formating required (for PDFs, DOCs etc.) thus removing a simple work-around I'd hope would solve this. Dang!


(Nic Hubbard) #4
That's a shame, thanks for your reply Nick.

 

I also discovered when a 'File' Display Format is created for an asset list, it trumps specific Dispaly Formats for all other Asset Selections removing the alternate formating required (for PDFs, DOCs etc.) thus removing a simple work-around I'd hope would solve this. Dang!

 

Hmm, this shouldn't be the case. Individual asset type formats should override...


(Aleks Bochniak) #5

Could you use a paint layout for your Display Format?

 

Then you could use a Conditional to display different html based on a Keyword Regexp on the asset_href to find '.zip' or '.swf'


#6
Could you use a paint layout for your Display Format?

 

Then you could use a Conditional to display different html based on a Keyword Regexp on the asset_href to find '.zip' or '.swf'

 

Thanks Aleks, I like the sound of that and will Investigate...