By sschwab on
I'm having a difficult time getting the RoopleTheme NewsFlash to display links to files that I have uploaded on the site. I've created a content type which is a meeting minutes/agenda. One of the fields is an uploaded file with file extensions of pdf or doc. I've created a view which should display these uploaded files such that a user can click on the file and download. This view works fine in other Themes but the file does not display in the above theme.
Using Firebug, there is a difference in the source as listed below:
NewsFlash Theme which doesn't display the filename:
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
<span class="views-field-field-meeting-date-value">
<span class="field-content">
<span class="date-display-single">12/08/2009</span>
</span>
</span>
<span class="views-field-field-minutes-fid">
<label class="views-label-field-minutes-fid"> Minutes or Agendas: </label>
<span class="field-content">
<a href="/hb3/node/120"/>
<div class="filefield-file clear-block">
<a title="" length="25088" type="application/msword" href="http://schwabsolutions.net/hb3/sites/default/files/minutes/User Templates.doc"/>
</div>
Here is another theme that displays correctly:
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
<span class="views-field-field-meeting-date-value">
<span class="field-content">
<span class="date-display-single">12/08/2009</span>
</span>
</span>
<span class="views-field-field-minutes-fid">
<label class="views-label-field-minutes-fid"> Minutes or Agendas: </label>
<span class="field-content">
<a href="/hb3/node/120"/>
<div class="filefield-file clear-block">
<div class="filefield-icon field-icon-application-msword">
<a href="/hb3/node/120">
<img class="field-icon-application-msword" src="http://schwabsolutions.net/hb3/sites/all/modules/filefield/icons/protocons/16x16/mimetypes/x-office-document.png" alt="application/msword icon"/>
</a>
</div>
<a type="application/msword; length=25088" href="http://schwabsolutions.net/hb3/sites/default/files/minutes/User Templates.doc">User Templates.doc</a>
</div>
Any help would be greatly appreciated!
Steve
Comments
More info...
This is driving me crazy. This view works as expected on many other themes including 2 others from RoopleTheme. So you might suspect some corrupt file in that theme. Problem is, it displays the same behavior on both my development server and production server. I'll try downloading and reinstalling the theme and see what happens.
I have tried to post my question on RoopleTheme forum but have not gotten my registration to their forum reviewed/approved yet.
Solved
Well, looks like it was a corrupt theme. I uploaded the latest NewsFlash theme files and all is well. I suspect I transferred the same bad files to my production server when I migrated.
Now, on to my next project!