How to style "File Info" field format?

5 replies [Last post]
benklocek
User offline. Last seen 1 week 3 days ago. Offline
Joined: 07/30/2010

Is there any way to theme the "File Info" display, outside of css? Changing the labels, etc?

Any chance you might include Display Suite integration?

See http://drupal.org/project/nd_contrib for examples of other modules incorporating DS support. API here: http://drupal.org/node/697320

As a side note, do you prefer we ask for help in the "Support Forum" or open a trouble ticket?

wildkatana
User offline. Last seen 3 hours 51 min ago. Offline
Joined: 06/03/2009
I added a theming function

I added a theming function for this, so in the next release you can use ms_files_buynow_button.tpl.php and ms_files_buynow_button.tpl.php

Sincerely,
Leighton Whiting

benklocek
User offline. Last seen 1 week 3 days ago. Offline
Joined: 07/30/2010
Great!

I just found theme_ms_files_cck_formatter_info, so I'm just overriding it in my theme. I was hoping to do it in the UI, but this will work fine for now.

Any ETA on the next release? Those theming functions sounds great!

As an aside, there is a bug in that function:

"$pFile->item_name" should be "$pFile->name"

wildkatana
User offline. Last seen 3 hours 51 min ago. Offline
Joined: 06/03/2009
That bug was fixed in my dev

That bug was fixed in my dev version, just haven't released it yet. I'm planning on releasing new versions of all of my modules this week over the next couple of days, so it should be soon.

Sincerely,
Leighton Whiting

wildkatana
User offline. Last seen 3 hours 51 min ago. Offline
Joined: 06/03/2009
Also, that theme function in

Also, that theme function in the cck module is being overhauled. It has a lot of logic in it which will be removed.

Sincerely,
Leighton Whiting

benklocek
User offline. Last seen 1 week 3 days ago. Offline
Joined: 07/30/2010
Still not quite enough

Using 2.2: Looks like the function override in template.php for theme_ms_files_cck_formatter_info and theme_ms_files_cck_formatter_default are still the way to go for more custom displays.

Thanks for getting closer.